Plex Forums: Control SABnzbd from Plex - Plex Forums

Jump to content

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

Control SABnzbd from Plex

#1 User is offline   JayBird Icon

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 224
  • Joined: 09-June 08
  • Location:Oop Norf, UK

Posted 24 September 2008 - 10:22 AM

SABnzbd developer switch over a the SABnzbd forums has wirtten a Python script that can let you control SABnzbd from within XBMC.

I tested this out last night in PLEX and it works great!

See here for the discussion - http://forums.sabnzb...msg5716#msg5716

See here for the download (v1.3) - http://forums.sabnzb...msg6599#msg6599

You need to unzip the files into ~/library/application support/plex/plugins/video/sabnzbd/

Change the settings in settings.py

Boot up plex, go to "watch my videos" and thee should be a new source called video plugins. Select that then select SABnzbd and bobs your uncle.

You can even add RSS feeds and send new stuff to your download queue straight from within Plex.

Check it out.
Mac Mini 2.0Ghz | 17" i5 MacBook Pro | iPhone 4
0

#2 User is offline   ClunkClunk Icon

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 138
  • Joined: 11-June 08

Posted 24 September 2008 - 01:41 PM

Just tried it out for a bit. It works really well. The custom Newzbin feeds are what I'm really enjoying.

Thanks for pointing this out. I've been using Plex and SABnzbd+ for a while now on a single machine, and it's great having them interact with each other.
0

#3 User is offline   muzo178 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 69
  • Joined: 10-June 08
  • Gender:Male
  • Location:Istanbul

Posted 24 September 2008 - 08:49 PM

this is brilliant. :)
0

#4 User is offline   Doraemonn Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 59
  • Joined: 05-October 08

Posted 05 October 2008 - 06:57 PM

View Postmuzo178, on Sep 24 2008, 09:49 PM, said:

this is brilliant. :)


Pure genius - this thing deserves its own slot in the main navi... Now if only they could get the movie info to work, it would be nothing short of perfect.
bravelittlememe loves Plex
0

#5 User is offline   switch Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 04-November 08

Posted 04 November 2008 - 07:41 PM

New version!
Posted Image
Posted Image
Posted Image

IMDB and poster fetching will only work for newzbin feeds. Many thanks goes to Nuka1195 for his python IMDB scraper adapted from the xbmc scraper regular expressions.

Quote

SABnzbd Plugin
v1.4

Instructions:
================
1) Extract to XBMC\plugins\Video such as C:\Program Files\XBMC\plugins\Video
2) Open the plugin, and right click/info button on one of the items, choose "Plugin Settings"
3) Enter your sabnzbd host+ip
4) If you want imdb info+posters enable them
5) If you want any extra RSS feeds, open settings.py and add any extra RSS feeds to the dictionary (note these will be replaced when upgrading versions, so make a copy)

*note for the RSS feed to work, it requires the link to point directly to an nzb file, with no user/pass needed
Supported sites can be found here: http://forums.sabnzb...hp?topic=1339.0

Changelog
================
1.4
-Added posters and movie information from IMDB for newzbin feeds (off by default)
-Moved settings from settings.py to "Plugin Settings" (access via the right click menu)
-Added more default RSS feeds (tvbinz and nzbindex.nl need sabnzbd 0.4.5)
-Added configurable caching of RSS feeds and imdb information
-Added icon for newzbin feed
-Improved default download icon

Download: SABnzbd-XBMC-Plugin-1.4.zip
0

#6 User is offline   JayBird Icon

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 224
  • Joined: 09-June 08
  • Location:Oop Norf, UK

Posted 04 November 2008 - 08:03 PM

Good stuff switch!

Will check this out tonight
Mac Mini 2.0Ghz | 17" i5 MacBook Pro | iPhone 4
0

#7 User is offline   Tms8707056 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 07-November 08

Posted 08 November 2008 - 07:05 PM

I am having problems getting the script to display my SAB queue. I have entered all of the settings as stated in the readme, but it does nothing when I click on SABNZB - QUEUE. I have tried entering the URL to SAB in settings.py, but this did not help. How do I enable the debug logging to try to figure out what is happening? I can get to SAB just fine in my broswer so I sure it is something to do with the script.
0

#8 User is offline   muzo178 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 69
  • Joined: 10-June 08
  • Gender:Male
  • Location:Istanbul

Posted 08 November 2008 - 09:11 PM

yummy.. this thing keeps getting better and better.
0

#9 User is offline   switch Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 04-November 08

Posted 08 November 2008 - 09:17 PM

View PostTms8707056, on Nov 8 2008, 07:05 PM, said:

I am having problems getting the script to display my SAB queue. I have entered all of the settings as stated in the readme, but it does nothing when I click on SABNZB - QUEUE. I have tried entering the URL to SAB in settings.py, but this did not help. How do I enable the debug logging to try to figure out what is happening? I can get to SAB just fine in my broswer so I sure it is something to do with the script.


Not sure where the log is kept on plex, try looking in "~/library/application support/plex/". Run the plugin and try loading the queue, then open the log and scroll up looking for any errors. Try looking for "sab_url:" and see if that url works in your browser.
0

#10 User is offline   Tms8707056 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 07-November 08

Posted 09 November 2008 - 03:05 AM

21:02:14 T:2689101728 M:129413120 WARNING: CreateFile, error 2 opening file </tmp/plex/aaf09b86.fi>, flags:4, mode:124.
21:02:18 T:2689101728 M:171991040 WARNING: CreateFile, error 2 opening file </tmp/plex/f9d5377b.fi>, flags:4, mode:124.
21:02:32 T:2689101728 M:147234816 WARNING: CreateFile, error 2 opening file </tmp/plex/6de0e208.fi>, flags:4, mode:124.
21:02:39 T:2689101728 M:159989760   ERROR: CGUIMediaWindow::GetDirectory(plugin://video/SABnzbd/?rss_url="""!?!SABnzbd - Queue!?!""",cookie="""""",old_handle="0") failed
21:02:41 T:2689101728 M:120385536 WARNING: CreateFile, error 2 opening file </tmp/plex/6de0e208.fi>, flags:4, mode:124.
21:02:45 T:2689101728 M:167608320   ERROR: CGUIMediaWindow::GetDirectory(plugin://video/SABnzbd/?rss_url="""!?!SABnzbd - Queue!?!""",cookie="""""",old_handle="0") failed


That is all that I see in the log that pertains to SABnzbd. I attempted to open the queue a couple of times.
0

#11 User is offline   switch Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 04-November 08

Posted 09 November 2008 - 03:12 AM

View PostTms8707056, on Nov 9 2008, 03:05 AM, said:

21:02:14 T:2689101728 M:129413120 WARNING: CreateFile, error 2 opening file </tmp/plex/aaf09b86.fi>, flags:4, mode:124.
21:02:18 T:2689101728 M:171991040 WARNING: CreateFile, error 2 opening file </tmp/plex/f9d5377b.fi>, flags:4, mode:124.
21:02:32 T:2689101728 M:147234816 WARNING: CreateFile, error 2 opening file </tmp/plex/6de0e208.fi>, flags:4, mode:124.
21:02:39 T:2689101728 M:159989760   ERROR: CGUIMediaWindow::GetDirectory(plugin://video/SABnzbd/?rss_url="""!?!SABnzbd - Queue!?!""",cookie="""""",old_handle="0") failed
21:02:41 T:2689101728 M:120385536 WARNING: CreateFile, error 2 opening file </tmp/plex/6de0e208.fi>, flags:4, mode:124.
21:02:45 T:2689101728 M:167608320   ERROR: CGUIMediaWindow::GetDirectory(plugin://video/SABnzbd/?rss_url="""!?!SABnzbd - Queue!?!""",cookie="""""",old_handle="0") failed


That is all that I see in the log that pertains to SABnzbd. I attempted to open the queue a couple of times.


Enable debug logging in Settings>System>Hardware, reboot plex and try again. Send me the full log if you can't work it out to switch@sabnzbd.org
0

#12 User is offline   Tms8707056 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 07-November 08

Posted 09 November 2008 - 07:14 PM

I finally got the plugin to work thanks to a file Switch sent me. I love the idea of controlling SABnzbd from Plex. My wife can browse for content to queue for download without having to touch the keyboard. However, the big drawback that I see is when an item is added to the SAB queue from Plex the categories are not set appropriately to match the content. This will prevent Plex from finding the media when a library update is triggered because the files do not download to the correct directory. I have to manually move the files before updating the library. Any ideas on how to get the categories to work with the plugin using Newzbin feeds?
0

#13 User is offline   switch Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 04-November 08

Posted 09 November 2008 - 10:38 PM

View PostTms8707056, on Nov 9 2008, 07:14 PM, said:

I finally got the plugin to work thanks to a file Switch sent me. I love the idea of controlling SABnzbd from Plex. My wife can browse for content to queue for download without having to touch the keyboard. However, the big drawback that I see is when an item is added to the SAB queue from Plex the categories are not set appropriately to match the content. This will prevent Plex from finding the media when a library update is triggered because the files do not download to the correct directory. I have to manually move the files before updating the library. Any ideas on how to get the categories to work with the plugin using Newzbin feeds?


If you don't mind editing the source, find item_list.py in plugins/Video/SABnzbd/nzb/ and do a search and replace for "&cat=-1" changing to "&cat=default"

I'll post a fixed version in a bit, just looking for any other bugs.
0

#14 User is offline   Tms8707056 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 07-November 08

Posted 10 November 2008 - 12:11 AM

View Postswitch, on Nov 9 2008, 11:38 PM, said:

If you don't mind editing the source, find item_list.py in plugins/Video/SABnzbd/nzb/ and do a search and replace for "&cat=-1" changing to "&cat=default"

I'll post a fixed version in a bit, just looking for any other bugs.


But will that use the appropriate category from Newzbin (i.e. Music for Music and TV for TV)? Or will everything be set to the default category?
0

#15 User is offline   t029248 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 62
  • Joined: 31-May 08
  • Gender:Male
  • Location:Holanda

Posted 10 November 2008 - 09:15 AM

View PostTms8707056, on Nov 8 2008, 08:05 PM, said:

I am having problems getting the script to display my SAB queue. I have entered all of the settings as stated in the readme, but it does nothing when I click on SABNZB - QUEUE. I have tried entering the URL to SAB in settings.py, but this did not help. How do I enable the debug logging to try to figure out what is happening? I can get to SAB just fine in my broswer so I sure it is something to do with the script.


The same for me with, the previous version worked fine, all the settings are correct.
0

#16 User is offline   switch Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 04-November 08

Posted 11 November 2008 - 11:02 PM

Got a new bug-fix version which should hopefully deal with everyone's category and sabnzbd queue concerns. Remember to backup your settings.py if you want to transfer your custom feeds over.

Posted Image (Horizonz skin)

Quote

SABnzbd Plugin
v1.4.1

Instructions:
================
1) Extract to XBMC\plugins\Video such as C:\Program Files\XBMC\plugins\Video
2) Open the plugin, and right click/info button on one of the items, choose "Plugin Settings"
3) Enter your sabnzbd host+ip
4) If you want imdb info+posters enable them
5) If you want any extra RSS feeds, open settings.py and add any extra RSS feeds to the dictionary (note these will be replaced when upgrading versions, so make a copy)

*note for the RSS feed to work, it requires the link to point directly to an nzb file, with no user/pass needed
Supported sites can be found here: http://forums.sabnzb...hp?topic=1339.0

Changelog
================
1.4.1
-Major cleanup and re-write of code
-Set the skin's viewmode to "Movies" when list contains imdb info. Allows for nicer views in some skins.
-Fixed newzbin category not being set
-Allow the sabnzbd category to be specified per feed
-Setting to allow the sabnzbd category to be selected from a list
-Fixed passworded sabnzbd queues not opening
-Fixed caching time having no effect.
-Possible fix for crash on linux due to caching.
-Removed nzbsrus RSS feed until supported by sabnzbd.

Download: SABnzbd-XBMC-Plugin-1.4.1.zip
0

#17 User is offline   Tms8707056 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 07-November 08

Posted 11 November 2008 - 11:40 PM

I couldn't get any of the feeds to display with the new version. Here is my log...
Attached File  Plex.txt (96.56K)
Number of downloads: 11
0

#18 User is offline   switch Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 04-November 08

Posted 12 November 2008 - 12:47 AM

View PostTms8707056, on Nov 11 2008, 11:40 PM, said:

I couldn't get any of the feeds to display with the new version. Here is my log...
Attachment Plex.txt

Try using a fresh settings.py (or just remove the newzbin user+pass, they are only needed if you wish to search within saved searches)
0

#19 User is offline   Tms8707056 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 07-November 08

Posted 12 November 2008 - 12:59 AM

View Postswitch, on Nov 12 2008, 01:47 AM, said:

Try using a fresh settings.py (or just remove the newzbin user+pass, they are only needed if you wish to search within saved searches)


I do use saved searches. It allows me to specify an HDTV and HD Movies category. That was a fresh settings.py, just had the username and pass for newzbin added. Is that my only option? Thanks for your help.

EDIT: The RSS link for newzbin saved searches contains an auth key. I was under the impression that this meant a user name and pass were not required to access the feed. Does the script not use this functionality?
0

#20 User is offline   switch Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 04-November 08

Posted 12 November 2008 - 01:10 AM

View PostTms8707056, on Nov 12 2008, 12:59 AM, said:

I do use saved searches. It allows me to specify an HDTV and HD Movies category. That was a fresh settings.py, just had the username and pass for newzbin added. Is that my only option? Thanks for your help.

EDIT: The RSS link for newzbin saved searches contains an auth key. I was under the impression that this meant a user name and pass were not required to access the feed. Does the script not use this functionality?


The auth key is good for static rss feeds, but when the search value is changed the auth key changes, so I use a custom login and cookie solution. I guessed that you weren't using saved searches, but since you are this fix will do until I release the next version:
Open \plugins\Video\SABnzbd\nzb\rss_parser.py in a text editor, add "from cookie_fetcher import CookieFetcher" (no quotes) near the top (can be on the first blank line if you are unsure).
0

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic



1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users