[Release] Simple downloader

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
TobiasTheCommie Offline
Skilled Python Coder
Posts: 621
Joined: Apr 2008
Reputation: 3
Post: #1
This is version 0.9.1 of a simple downloader for XBMC.

This service will go to Final 1.0, with YouTube 3.0.

This addon provides a simple http/rtmp downloader.

A single queue is used across all plugins.

The rtmp downloader uses the rtmpdump binary, and thus only streams supported by the installed rtmpdump will work.

We have endeavoured to make the downloader as unintrusive for the user as possible, it is thus very simple.

Implementation details can be found on the wiki.

http://wiki.xbmc.org/index.php?title=Add...mc_plugins

This is a dependency used by our other plugins, and we perform constant integration and unittesting during development

http://tc.tobiasussing.dk/jenkins/view/S...ownloader/

Questions, requests, suggestions are welcome.

Note: Before the 1.0 final we do not promise the interface will stay locked.
After the 1.0 version there will be "DeprecatedFunction" warnings on changes for a limited time.

TheCollective
(This post was last modified: 2012-01-27 01:42 by TobiasTheCommie.)
find quote
Popeye Offline
Posting Freak
Posts: 878
Joined: Aug 2009
Reputation: 25
Location: Sweden
Post: #2
Excellent!

Would you mind adding all possible params to the wiki? I Was thinking about how to set the "live" parameter.
The rtmpdump binary have to be manually downloaded or?

sverigesradio | Pneumatic | SABnzbd | XBMC that just works - openelec
(This post was last modified: 2011-12-09 12:01 by Popeye.)
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 621
Joined: Apr 2008
Reputation: 3
Post: #3
Sure, this is still a WIP, so we're bound to miss something.

As for the rtmp binary, we can't bundle it with the plugin, so it looks for the systemwide binary.

On linux it should Just Work™.

Sadly there isn't currently a better way to do it.

ETA: Updated the wiki with live RTMP stream examples.
(This post was last modified: 2011-12-09 17:51 by TobiasTheCommie.)
find quote
Popeye Offline
Posting Freak
Posts: 878
Joined: Aug 2009
Reputation: 25
Location: Sweden
Post: #4
Thanks for the information. Would it be possible to extend the api with a Boolean to know whether rtmpdump is supported or not?
This addon + svtplay = true IMHO

sverigesradio | Pneumatic | SABnzbd | XBMC that just works - openelec
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 621
Joined: Apr 2008
Reputation: 3
Post: #5
That is doable.

Might even help me solve another problem i'm having. Smile
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 621
Joined: Apr 2008
Reputation: 3
Post: #6
Finally got around to adding isRTMPInstalled.
find quote
Popeye Offline
Posting Freak
Posts: 878
Joined: Aug 2009
Reputation: 25
Location: Sweden
Post: #7
TobiasTheCommie Wrote:Finally got around to adding isRTMPInstalled.

Great, then I have some work todo.... Big Grin

sverigesradio | Pneumatic | SABnzbd | XBMC that just works - openelec
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 621
Joined: Apr 2008
Reputation: 3
Post: #8
It hasn't been pushed yet, if you want the trunk it is here http://hg.tobiasussing.dk/hgweb.cgi/downloadxbmc/
find quote
divingmule Offline
Posting Freak
Posts: 1,269
Joined: Oct 2008
Reputation: 54
Post: #9
Hi, I'm getting an AttributeError, any idea what I'm missing?

Code:
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'module' object has no attribute 'common'
Traceback (most recent call last):
          File "C:\Users\divingmule\Desktop\xbmc-pvr\XBMC\portable_data\addons\plugin.program.piratebay\default.py", line 16, in <module>
                                                downloader = downloader.SimpleDownloader()
          File "C:\Users\divingmule\Desktop\xbmc-pvr\XBMC\portable_data\addons\script.module.simple.downloader\lib\SimpleDownload​er.py", line 30, in __init__
                                                if sys.modules[ "__main__" ].common:
                                            AttributeError: 'module' object has no attribute 'common'
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 621
Joined: Apr 2008
Reputation: 3
Post: #10
Oh crap, yeah, you are gonna need this too http://hg.tobiasussing.dk/hgweb.cgi/commonxbmc/
find quote
Post Reply