XBMC SABnzbd+ Python Script

Got a program that plays well with SABnzbd? Share it here!

Re: XBMC SABnzbd+ Python Script

Postby switch » December 28th, 2008, 2:06 pm

Sorry, didn't read your post fully. If you are using custom categories, you will need to specify what category each feed is.

This can either be done on the sabnzbd level (which you should probably do) by going into config>categories and adding the corresponding newzbin category for each of your custom categories under the "Newzbin/group" field.

If that doesn't work, then you need to edit your settings.py in C:\Program Files\XBMC\plugins\Video\SABnzbd by adding a category field, eg from:
Code: Select all
{'name':'Newzbin - TV (Latest)', 'url':'http://www.newzbin.com/browse/category/p/tv/?feed=rss'},

to
Code: Select all
{'name':'Newzbin - TV (Latest)', 'url':'http://www.newzbin.com/browse/category/p/tv/?feed=rss', 'category', 'my tv'},
User avatar
switch
Moderator
Moderator
 
Posts: 1513
Joined: January 17th, 2008, 4:55 pm
Location: UK

Re: XBMC SABnzbd+ Python Script

Postby Paulers » December 28th, 2008, 7:25 pm

Hi Switch,

Is FeedParser also grabbing the attributes from the newsbin feed? I'm wondering if it would be possible to include video source, video format and language in the item details or listing. Sorry if this has already been discussed in an earlier thread.
Paulers
Newbie
Newbie
 
Posts: 3
Joined: December 21st, 2008, 9:31 pm

Re: XBMC SABnzbd+ Python Script

Postby switch » December 28th, 2008, 7:33 pm

Yes it can get the attributes from the newzbin post. I just haven't worked out where to put the information, and lost interest in developing the script futher.
User avatar
switch
Moderator
Moderator
 
Posts: 1513
Joined: January 17th, 2008, 4:55 pm
Location: UK

Re: XBMC SABnzbd+ Python Script

Postby tret » January 21st, 2009, 12:50 pm

Hi Switch, great script. I have it up and running and I have added a few custom newzbin RSS feeds based on my custom searches. These are working great.

I wanted to check with you and see if there is a way to use your search feature within a custom newzbin RSS feed rather than throughout all of Newzbin. Is this possible?

I noticed in your last post that you mentioned a loss of interest in further development... Is this still the case? It would be a shame for this awesome script to abandoned.

Thanks again!

tret
tret
Full Member
Full Member
 
Posts: 118
Joined: August 2nd, 2008, 3:07 pm

Re: XBMC SABnzbd+ Python Script

Postby switch » January 21st, 2009, 1:56 pm

I don't have XBMC installed at the moment, but I think I fixed the issue with searching within saved searches not working, you can try this:
http://www.mediafire.com/file/y24atdmjz ... .2beta.zip
Last edited by switch on January 21st, 2009, 5:31 pm, edited 1 time in total.
User avatar
switch
Moderator
Moderator
 
Posts: 1513
Joined: January 17th, 2008, 4:55 pm
Location: UK

Re: XBMC SABnzbd+ Python Script

Postby tret » January 21st, 2009, 5:07 pm

switch wrote:I don't have XBMC installed at the moment, but I think I fixed the issue with searching within saved searches not working, you can try this:
http://www.mediafire.com/file/jtgzt5ozw ... .2beta.zip


Nice, thanks! How do I set up searching within a newzbin saved search? Right now I have something like this set up for browsing a saved search RSS feed. It lets me view the latest 100 items that match my newzbin saved search criteria. This works perfectly within your script in XBMC. Now how can I alter this line to allow me to search within this feed while in your script in XBMC?

Code: Select all
{'name':'Newzbin - Movies (HD)', 'url':'http://www.newzbin.com/search/?go=1&ss=350809&fpn=p&feed=rss&fauth=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'},


Thanks,
tret
tret
Full Member
Full Member
 
Posts: 118
Joined: August 2nd, 2008, 3:07 pm

Re: XBMC SABnzbd+ Python Script

Postby switch » January 21st, 2009, 5:28 pm

Enter the username and password at the top of settings.py and use this:
Code: Select all
{'name':'Newzbin - Movies (HD) - Search', 'url':'http://www.newzbin.com/search/?q=%s&go=1&ss=350809&fpn=p&feed=rss'},


The name needs to end in '- Search' and needs q=%s in the url.
User avatar
switch
Moderator
Moderator
 
Posts: 1513
Joined: January 17th, 2008, 4:55 pm
Location: UK

Re: XBMC SABnzbd+ Python Script

Postby tret » January 21st, 2009, 9:42 pm

switch wrote:Enter the username and password at the top of settings.py and use this:
Code: Select all
{'name':'Newzbin - Movies (HD) - Search', 'url':'http://www.newzbin.com/search/?q=%s&go=1&ss=350809&fpn=p&feed=rss'},


The name needs to end in '- Search' and needs q=%s in the url.


Hey switch, sorry to bug you some more but I am running into an issue here. First of all if I try and enter my newzbin username and password in the config file, none of the RSS feeds work at all (When selected nothing happens). I have double and triple checked the username and password and they are set correct.

Code: Select all
username_newzbin = 'username_here'
password_newzbin = 'password_here'

{'name':'Movies (HD) - Browse', 'url':'http://www.newzbin.com/search/?go=1&ss=350809&fpn=p&feed=rss'},



The only way I can get them to work is if I make the username and password blank and include the authentication string at the end of the URL.

Code: Select all
username_newzbin = ''
password_newzbin = ''

{'name':'Movies (HD) - Browse', 'url':'http://www.newzbin.com/search/?go=1&ss=350809&fpn=p&feed=rss&fauth=MjgzNzE3LWVhY2YwYjY5NjU0NTljYTA4MDMwMDllZTBmNTNmODM3MDRiZjg1NTM%3D'},



I'm not sure if it is a result of this but I am unable to get the Search feature of your script working with the above RSS feed, this is the entry I am attempting to use. The search box comes up, I enter text and then it exits to the list of feeds.

Code: Select all
{'name':'Movies (HD) - Search', 'url':'http://www.newzbin.com/search/?q=%s&go=1&ss=350809&fpn=p&feed=rss&fauth=MjgzNzE3LWI0ZDNkYzAyNGY4OTc1M2VkZmZlYWJlMTlhNWEyNzEyODlmOWNjMWU%3D'},


Do you have any input or ideas?

Thanks,
tret
Last edited by tret on January 21st, 2009, 9:47 pm, edited 1 time in total.
tret
Full Member
Full Member
 
Posts: 118
Joined: August 2nd, 2008, 3:07 pm

Re: XBMC SABnzbd+ Python Script

Postby slight » March 3rd, 2009, 7:49 pm

Hey. I had the same problem as you so I poked around for a bit (a good few hours tbh, I know bugger all python) and it turns out there was a problem with cookie_fetcher.py (int the 'nzb' subfolder of the plugin)

Add this below 'import sys':

import os
import settings

So you end up with :

import sys
import os
import settings
import urllib
[...]

And searching within saved searches should work. As Switch said, make sure you have the search feed name ending in '- Search', %s in place of the search term, your newzbin login in the spaces at the top of settings.py and remove the auth cookie from the end of the saved search URL.
slight
Newbie
Newbie
 
Posts: 1
Joined: March 1st, 2009, 9:58 pm

Re: XBMC SABnzbd+ Python Script

Postby tret » March 4th, 2009, 6:13 pm

slight wrote:Hey. I had the same problem as you so I poked around for a bit (a good few hours tbh, I know bugger all python) and it turns out there was a problem with cookie_fetcher.py (int the 'nzb' subfolder of the plugin)

Add this below 'import sys':

import os
import settings

So you end up with :

import sys
import os
import settings
import urllib
[...]

And searching within saved searches should work. As Switch said, make sure you have the search feed name ending in '- Search', %s in place of the search term, your newzbin login in the spaces at the top of settings.py and remove the auth cookie from the end of the saved search URL.


Awesome, thanks for sharing! I will work on this later tonight.

Rob
tret
Full Member
Full Member
 
Posts: 118
Joined: August 2nd, 2008, 3:07 pm

Re: XBMC SABnzbd+ Python Script

Postby tret » March 15th, 2009, 2:40 am

tret wrote:
slight wrote:Hey. I had the same problem as you so I poked around for a bit (a good few hours tbh, I know bugger all python) and it turns out there was a problem with cookie_fetcher.py (int the 'nzb' subfolder of the plugin)

Add this below 'import sys':

import os
import settings

So you end up with :

import sys
import os
import settings
import urllib
[...]

And searching within saved searches should work. As Switch said, make sure you have the search feed name ending in '- Search', %s in place of the search term, your newzbin login in the spaces at the top of settings.py and remove the auth cookie from the end of the saved search URL.


Awesome, thanks for sharing! I will work on this later tonight.

Rob


I tried this with no luck. I am still unable to get authentication working. I added the python imports, entered my username and password in the settings file and my saved search rss feeds but no luck.

Any other ideas?

Rob
tret
Full Member
Full Member
 
Posts: 118
Joined: August 2nd, 2008, 3:07 pm

Re: XBMC SABnzbd+ Python Script

Postby bnb » March 31st, 2009, 3:39 pm

I just wanted to say THANKS for the script.
bnb
Release Testers
Release Testers
 
Posts: 26
Joined: March 28th, 2009, 4:20 am

Re: XBMC SABnzbd+ Python Script

Postby evidenceunseen » April 6th, 2009, 12:42 am

Is anyone else not getting the imdb information pulled, it just shows titles? It did work but now it doesn't
Last edited by evidenceunseen on April 6th, 2009, 12:54 am, edited 1 time in total.
evidenceunseen
Jr. Member
Jr. Member
 
Posts: 56
Joined: February 11th, 2008, 3:33 pm

Re: XBMC SABnzbd+ Python Script

Postby switch » April 16th, 2009, 6:10 pm

evidenceunseen wrote:Is anyone else not getting the imdb information pulled, it just shows titles? It did work but now it doesn't


Does the log say anything? Does it work if you run it as administrator?

I've got a new version out that is compatible with SABnzbd 0.4.9, however I don't have a working XBMC install to check so can someone give it a quick spin to see if it adds files correctly with the API Key and it displays an appropriate error message without one.
Changelog
================
1.5
-Added settings value for API KEY, should prompt if needed
-An RSS feed now only requires %s in the url where the search term is entered for it to be recognised as a searchable RSS feed

SABnzbd-XBMC-Plugin-1.5a.zip


BTW I apologize for those of you running this on the xbox that will need to enter in the API key using the controller.
User avatar
switch
Moderator
Moderator
 
Posts: 1513
Joined: January 17th, 2008, 4:55 pm
Location: UK

Re: XBMC SABnzbd+ Python Script

Postby AllanMar » April 16th, 2009, 6:22 pm

I'm trying to use this plugin with the SVN version of XBMC (soon to be 9.04 xbmc). When i choose any option in the plugin. SABnzbd queue, a feed, etc XBMC just crashes (Segmentation Fault). The debug log dosnt seem to show much but i've included it here:
http://pastebin.com/m38dfce74

Mayb this has something to do with this:
http://xbmc.org/jmarshall/2009/02/10/ch ... d-plugins/

Thanks in advance.
AllanMar
Newbie
Newbie
 
Posts: 6
Joined: April 16th, 2009, 2:02 pm

PreviousNext

Return to Third-party Addons