XBMC SABnzbd+ Python Script

Got a program that plays well with SABnzbd? Share it here!
Post Reply
tslayer
Newbie
Newbie
Posts: 4
Joined: April 19th, 2009, 11:24 am

Re: XBMC SABnzbd+ Python Script

Post by tslayer »

sw1tch,

Just registered to let you know of a bug with the apikey stuff.

The following changes should go in sabnzbd_actions.py:

apikey = xbmcplugin.getSetting( "sab_key" )

and

self.sabnzbd_url += key


Diff looks like:

diff /home/eric/plugins/SABnzbd/nzb/sabnzbd_actions.py sabnzbd_actions.py
17c17
         apikey = xbmcplugin.getSetting( "sab_key" )
29c29
             self.sabnzbd_url += key


Thanks for the great plugin.
Last edited by tslayer on April 19th, 2009, 11:34 am, edited 1 time in total.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: XBMC SABnzbd+ Python Script

Post by switch »

tslayer wrote: sw1tch,

Just registered to let you know of a bug with the apikey stuff.

The following changes should go in sabnzbd_actions.py:

apikey = xbmcplugin.getSetting( "sab_key" )

and

self.sabnzbd_url += key


Diff looks like:

diff /home/eric/plugins/SABnzbd/nzb/sabnzbd_actions.py sabnzbd_actions.py
17c17
         apikey = xbmcplugin.getSetting( "sab_key" )
29c29
             self.sabnzbd_url += key


Thanks for the great plugin.
Thanks tslayer, was a silly mistake. Should hopefully be fixed now.
Changelog
================
1.5.1
-Fixed bug with api key
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.5.1.zip
Lytse
Newbie
Newbie
Posts: 3
Joined: April 21st, 2009, 5:17 pm

Re: XBMC SABnzbd+ Python Script

Post by Lytse »

I gave this a try, but sabnzbd says the api_key is missing and the plugin wants me to enter one, which I did  ???

I cannot say anything about the plugin yet, but it would be great to watch the sab queue from it.
pepzi
Newbie
Newbie
Posts: 5
Joined: April 26th, 2009, 10:18 am

Re: XBMC SABnzbd+ Python Script

Post by pepzi »

switch wrote: Thanks tslayer, was a silly mistake. Should hopefully be fixed now.
Changelog
================
1.5.1
-Fixed bug with api key
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.5.1.zip
I just downloaded version 1.5.1, but I think you forgot to change this line:

apikey = xbmcplugin.getSetting( "api_key" )

I changed api_key to sab_key as tslayer suggested, and it works like a charm! I love it, thanks!
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: XBMC SABnzbd+ Python Script

Post by switch »

pepzi wrote: I just downloaded version 1.5.1, but I think you forgot to change this line:

apikey = xbmcplugin.getSetting( "api_key" )

I changed api_key to sab_key as tslayer suggested, and it works like a charm! I love it, thanks!
Doh, thanks.
Changelog
================
1.5.2
-Fixed another api key bug
1.5.1
-Fixed bug with api key
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.5.2.zip
DDM123
Release Testers
Release Testers
Posts: 8
Joined: April 27th, 2009, 11:28 pm

Re: XBMC SABnzbd+ Python Script

Post by DDM123 »

I'm getting this error/segfault when I load up the plugin in XBMC (Ubuntu 9.04 64bit Nvidia 185.19):

xbmc@htpc:~$ DISPLAY=":0.0" xbmc
The XBMC_HOME environment variable is not set.
Error loading jpeg - no SOI marker found in first 4096 bytes
Error loading jpeg - no SOI marker found in first 4096 bytes
TIFF IMAGE: Not a TIFF or MDI file, bad magic number 19778 (0x4d42).
CRITSEC[0x3a67150]: Trying to enter uninitialized section.
CRITSEC[0x3a67150]: Trying to leave uninitialized section.
Segmentation fault

I also tried 1.4.1 but the result was the same. In either case,  this line sometimes shows up as well:
xbmc.bin: ../../src/xcb_io.c:176: process_responses: Assertion `!(req && current_request && !(((long) (req->sequence) - (long) (current_request)) <= 0))' failed.

Also this plugin looks amazing and I can't wait to get it working.


EDIT: I kept running into problems with 64 bit so I went back to 32. Your plugin is working perfectly.
Last edited by DDM123 on April 28th, 2009, 3:51 pm, edited 1 time in total.
Lytse
Newbie
Newbie
Posts: 3
Joined: April 21st, 2009, 5:17 pm

Re: XBMC SABnzbd+ Python Script

Post by Lytse »

now it crashes...

these are the last lines of my xbmc.log

===
01:45:05 T:1444870480 M:3782520832  NOTICE:
01:45:05 T:1444870480 M:3782520832  NOTICE: read:True
01:45:05 T:1444870480 M:3782520832  NOTICE:
01:45:05 T:1444870480 M:3782422528  NOTICE: getting response
01:45:05 T:1444870480 M:3782422528  NOTICE:
01:45:05 T:1444870480 M:3782422528  NOTICE: resp:{"have_warnings":"0","timeleft":"0:00:00","mb":0.000000,"noofslots":0,"paused":null,"mbleft":0.000000,"diskspace2":902.809406,"diskspace1":902.809406,"kbpersec":0.000000,"jobs":[]}
01:45:05 T:1444870480 M:3782422528  NOTICE:
01:45:05 T:1444870480 M:3782422528  NOTICE: sabnzbd-xbmc Filling the list
01:45:05 T:1444870480 M:3782422528  NOTICE:
01:45:05 T:1444870480 M:3782422528  NOTICE: sabnzbd-xbmc total items found: 1
01:45:05 T:1444870480 M:3782422528  NOTICE:
01:45:05 T:1444870480 M:3782422528  NOTICE: The queue is empty - /home/xxxx/.xbmc/plugins/video/SABnzbd/sabc_64.png - default
01:45:05 T:1444870480 M:3782422528  NOTICE:
=== :-\
clems
Newbie
Newbie
Posts: 5
Joined: April 28th, 2009, 1:56 pm

Re: XBMC SABnzbd+ Python Script

Post by clems »

Hello,

Your plug-in is just perfect for what I was looking for very good job !!!

issue:  Crash of XBMC when I try to browse  binsearch TV or Movie
]xbmc.bin: ../../src/xcb_io.c:176: process_responses: Assertion `!(req && current_request && !(((long) (req->sequence) - (long) (current_request)) sequence) - (long) (current_request)) <= 0))' failed.
Aborted

Hope it can help
If you need someone for futher troubleshoot and test on Unbuntu 64bits just let me know.

Update: Just test on 32 bits. it's just ...wait for it ... Legendary !!
Great job hope you will find the solution for 64 bits

Regards,
Last edited by clems on April 29th, 2009, 6:16 pm, edited 1 time in total.
Lytse
Newbie
Newbie
Posts: 3
Joined: April 21st, 2009, 5:17 pm

Re: XBMC SABnzbd+ Python Script

Post by Lytse »

Something goes wrong in building up the lists, i do see some output in my logs (only first item). Please get it to work on 64 bit too :) (have the same kind of problems as described in previous post)
Last edited by Lytse on April 29th, 2009, 5:50 pm, edited 1 time in total.
clems
Newbie
Newbie
Posts: 5
Joined: April 28th, 2009, 1:56 pm

Re: XBMC SABnzbd+ Python Script

Post by clems »

Small update:

I confirm it's seems to be an issue during the listing process.

Log from XBMC:
15:50:29 T:3020400976 M:3408551936  NOTICE: sabnzbd-xbmc parsed successfully
15:50:29 T:3020400976 M:3408551936  NOTICE:
15:50:29 T:3020400976 M:3408551936  NOTICE: sabnzbd-xbmc Filling the list
15:50:29 T:3020400976 M:3408551936  NOTICE:
15:50:29 T:3020400976 M:3408551936  NOTICE: sabnzbd-xbmc total items found: 50
15:50:29 T:3020400976 M:3408551936  NOTICE:
15:50:29 T:3020400976 M:3408551936  NOTICE: Weeds - 3x10 - Roy Till Called (1.2GB) - /home/clems/.xbmc/plugins/video/SABnzbd/sabc_64.png - default
15:50:29 T:3020400976 M:3408551936  NOTICE:

And after that XBMC crash
clems
Newbie
Newbie
Posts: 5
Joined: April 28th, 2009, 1:56 pm

Re: XBMC SABnzbd+ Python Script

Post by clems »

Workarround for Ubuntu 64 bits: Running xbmc chroot 32 bits.
Your addon is just fantastic !!! ;D
AllanMar
Newbie
Newbie
Posts: 6
Joined: April 16th, 2009, 1:02 pm

Re: XBMC SABnzbd+ Python Script

Post by AllanMar »

clems wrote: Workarround for Ubuntu 64 bits: Running xbmc chroot 32 bits.
Your addon is just fantastic !!! ;D
Any advice/howto on setting up a 32bit chroot for xbmc? I really want to use this plugin and the fact that xbmc's webserver dosnt work 64bit sucks too.
clems
Newbie
Newbie
Posts: 5
Joined: April 28th, 2009, 1:56 pm

Re: XBMC SABnzbd+ Python Script

Post by clems »

I will create an how to this weekend and update this post with the link
AllanMar
Newbie
Newbie
Posts: 6
Joined: April 16th, 2009, 1:02 pm

Re: XBMC SABnzbd+ Python Script

Post by AllanMar »

clems wrote: I will create an how to this weekend and update this post with the link
Dont bother on my account. After several other plugins wouldnt work with with 64bit, i just reinstalled to 32bit and everything is working fine now. Its a HTPC only PC so this made more sense anyway. Thanks though.

-
AllanMar
Newbie
Newbie
Posts: 6
Joined: April 16th, 2009, 1:02 pm

Re: XBMC SABnzbd+ Python Script

Post by AllanMar »

Is nzbmatrix supposed to work with this script? (Im using the 0.5 version that supports nzbmatrix) How about nzbs.org? Does anyone have that working. It reads the feeds fine, but when i attempt to add to queue it just says it cant and to check settings. Checking XBMC log, theres no errors, and I can take the sabnzbd url it gives there and enter it in the browser and it works fine.

tvnzb so far is the only one that works for me. On that note, if anyone had a newsbin invite it would be appreciated (allan at thb dot ca). Is there any others rss's that the IMDb scraping works well with?
Post Reply