[REQUEST] SABnzbd+ Controller (NBZ) Python Script for XBMC?

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
mr.b Offline
Senior Member
Posts: 165
Joined: May 2007
Reputation: 0
Post: #11
i looked into streaming from RAR awhile back with sabnzbd... it's possible to set the complete and incomplete directory to the same place and make sure the +Delete option is NOT set -- this would leave the RARs in place even after the download is complete. I'm pretty sure XBMC is supposed to support playing from an incomplete RAR set, so theoretically you could write a python script to fire off the sab download, watch the directory for a few RARs to show, then tell XBMC to start playing from the directory containing the growing RAR set. The developer of sabnzbd says that he's already reording the RARs. Assuming you string all the pieces together, one remaining thing that may or may not be an issue is whether XBMC is smart enough to start playing cd2 after cd1 is complete in the situation where the movie has been split up.
find quote
sw1tch Offline
Member
Posts: 52
Joined: Jul 2007
Reputation: 0
Post: #12
I made a small script yesterday for adding downloads to sabnzbd. It browses content from RSS feeds as I'm not too interested going through the pain that is screen scrapping.

Development hit some limitations, mainly due to newzbin auth strings changing for different feed ruling out searching newzbin Sad If the site you use is has rss feeds that you can view without logging in, add them to the menu in settings.py. Newzbin will work as it has an authorization key.

You need to open settings.py to add newzbin rss feeds and your sabnzbd settings. The script is in a very early form, so this isn't a "proper" release.

Code:
SABnzbd Plugin
v1.0
================
1) Extract to XBMC\plugins\Video
2) Make sure sabnzbd is listening on your local ip address unless sabnzbd and xbmc are running on the same machine
3) Open up settings.py, Enter in your sabnzbd ip address in "sab_host"
4) Replace 'enter your rss feed here' with your newzbin RSS feeds
5) Add any extra RSS feeds to the dictionary (note these will be replaced when upgrading versions, so make a copy)
SABnzbd-XBMC-Plugin-1.0.zip
find quote
sw1tch Offline
Member
Posts: 52
Joined: Jul 2007
Reputation: 0
Post: #13
Made a couple of improvements, more specifically can now search newzbin, opening up a lot more content. May also have a way to browse all TV and Movies in an organised manner. You will need to enter in your newzbin settings in settings.py for newzbin items to show.

Code:
Changelog
================
1.1
-Added searching of nzb files from newzbin
-Added support for running a password protected sabnzbd
-Changed newzbin to use username and password for authentication
-Added more error messages to help debug
-Added file sizes for newzbin feeds
-Added icons for nzb downloads
SABnzbd-XBMC-Plugin-1.1.zip
find quote
sw1tch Offline
Member
Posts: 52
Joined: Jul 2007
Reputation: 0
Post: #14
Code:
Changelog
================
1.2
-Fixed newzbin cookies, dummy user/pass was being sent
-Fixed adding newzbin files
SABnzbd-XBMC-Plugin-1.2.zip
find quote
Zepp Offline
Junior Member
Posts: 2
Joined: Aug 2008
Reputation: 0
Post: #15
sw1tch Wrote:
Code:
Changelog
================
1.2
-Fixed newzbin cookies, dummy user/pass was being sent
-Fixed adding newzbin files
SABnzbd-XBMC-Plugin-1.2.zip

Nice, this is pretty awesome so far. Could you add in support to remove items from the sabnzbd queue perhaps? 'deleting the video' does nothing when in the queue section.
find quote
sw1tch Offline
Member
Posts: 52
Joined: Jul 2007
Reputation: 0
Post: #16
Zepp Wrote:Nice, this is pretty awesome so far. Could you add in support to remove items from the sabnzbd queue perhaps? 'deleting the video' does nothing when in the queue section.

I was going to wait for SABnzbd 0.5 (still a while off) before I added queue controls, however I can add a few before then such as Deleting and Moving an item to the top of the queue.

As soon as I can work out how to refresh the queue after an action I'll release an update.
find quote
PainToad Offline
Senior Member
Posts: 217
Joined: Aug 2008
Reputation: 0
Post: #17
Love your script sw1tch! I can now stop using dirt hacks and use ur brilliant script, cheers Smile
find quote
Zepp Offline
Junior Member
Posts: 2
Joined: Aug 2008
Reputation: 0
Post: #18
sw1tch Wrote:I was going to wait for SABnzbd 0.5 (still a while off) before I added queue controls, however I can add a few before then such as Deleting and Moving an item to the top of the queue.

As soon as I can work out how to refresh the queue after an action I'll release an update.

Thank you.
find quote
sw1tch Offline
Member
Posts: 52
Joined: Jul 2007
Reputation: 0
Post: #19
Sorry for the late response, had to work out a few coding issues.

Code:
Changelog
================
1.3
-Changed the successful sabnzbd add dialog to a notification
-Allow items to be deleted/moved in the queue
-Fixed sorting under xbox
-More failure notices
-Problem shwing queue for "fetching" items from newzbin
Bonus pic:
[Image: sabxbmcze7.png]

Download:
SABnzbd-XBMC-Plugin-1.3.zip
find quote
flamez Offline
Member
Posts: 90
Joined: Jul 2006
Reputation: 0
Post: #20
Thanks so much Sw1tch!
find quote
Post Reply