Page 5 of 11

Re: XBMC SABnzbd+ Python Script

Posted: December 28th, 2008, 1:06 pm
by switch
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'}, 

Re: XBMC SABnzbd+ Python Script

Posted: December 28th, 2008, 6:25 pm
by Paulers
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.

Re: XBMC SABnzbd+ Python Script

Posted: December 28th, 2008, 6:33 pm
by switch
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.

Re: XBMC SABnzbd+ Python Script

Posted: January 21st, 2009, 11:50 am
by tret
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

Re: XBMC SABnzbd+ Python Script

Posted: January 21st, 2009, 12:56 pm
by switch
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

Re: XBMC SABnzbd+ Python Script

Posted: January 21st, 2009, 4:07 pm
by tret
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

Re: XBMC SABnzbd+ Python Script

Posted: January 21st, 2009, 4:28 pm
by switch
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.

Re: XBMC SABnzbd+ Python Script

Posted: January 21st, 2009, 8:42 pm
by tret
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

Re: XBMC SABnzbd+ Python Script

Posted: March 3rd, 2009, 6:49 pm
by slight
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.

Re: XBMC SABnzbd+ Python Script

Posted: March 4th, 2009, 5:13 pm
by tret
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

Re: XBMC SABnzbd+ Python Script

Posted: March 15th, 2009, 1:40 am
by tret
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

Re: XBMC SABnzbd+ Python Script

Posted: March 31st, 2009, 2:39 pm
by bnb
I just wanted to say THANKS for the script.

Re: XBMC SABnzbd+ Python Script

Posted: April 5th, 2009, 11:42 pm
by evidenceunseen
Is anyone else not getting the imdb information pulled, it just shows titles? It did work but now it doesn't

Re: XBMC SABnzbd+ Python Script

Posted: April 16th, 2009, 5:10 pm
by switch
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.

Re: XBMC SABnzbd+ Python Script

Posted: April 16th, 2009, 5:22 pm
by AllanMar
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.