Unofficial Google Chrome Extension

Got a program that plays well with SABnzbd? Share it here!
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Unofficial Google Chrome Extension

Post by switch »

Just published a major new version:

v1.0 - Major update
---------------------------
- Minimum version of SABnzbd is now 0.5 - Please upgrade if still running the 0.4.x series.
- Moved to SABnzbd's new 0.5 API for more variables and functions.
- Top 5 queue items now show in the popup.
- Can drag+drop top5 items.
- Made 1click optional on all sites (cannot remove the icon due to technical difficulties).
- Added an optional Google Chart for download speed (default disabled).
- Can delete/pause individual items in the top5.


Image
https://chrome.google.com/extensions/de ... hplifocfgp

Let me know if you have any problems. Should be more available to fix them now.
Last edited by switch on February 25th, 2010, 7:03 pm, edited 1 time in total.
tret
Full Member
Full Member
Posts: 148
Joined: August 2nd, 2008, 2:07 pm

Re: Unofficial Google Chrome Extension

Post by tret »

Great extension switch! I updated to your new release and I'm experiencing an issue with the 1-click button on v3.newzbin.com.

When I load a category the page loads but the icon where the 1-click button should be doesn't change and remains the generic green down arrow icon. I have to do a browser refresh and once the page refreshes completely the 1-click button appears as expected. I haven't tried much troubleshooting beyond verifying the issue and recreating it repeatedly using the above method.

Thanks,
Rob
Shady
Newbie
Newbie
Posts: 24
Joined: June 20th, 2009, 9:00 pm

Re: Unofficial Google Chrome Extension

Post by Shady »

Wow switch nice update!
The status and pause/resume/removing from queue/pausing in queue and all the extra built in functions you worked into this are working (including the nice google chart!).
However, in version 5.0 of chrome the oneclick does not work. The icon changes and appears but nothing get's added to the queue.
I tested this with newzbin and tvnzb. For the record even though the oneclick does not do anything for me, i experience the same "lag" or "delay" of the showing up of the sabnzbd icon for newzbin aswell like tret mentioned.

I'm running ubuntu all updates + chrome 5.0

The test connection works, i approach my sabnzbd instance through apache(proxypass) with username password. My Sabnzbd url is defined as http://user:[email protected]/nzb/

All the best, keep up the good work :)
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Unofficial Google Chrome Extension

Post by switch »

v1.0.1
---------------------------
- Fixed icon not being replaced on newzbin pages


Let me know if that fixes things for you guys. Cannot find an issue with TVNZB pages.
Shady
Newbie
Newbie
Posts: 24
Joined: June 20th, 2009, 9:00 pm

Re: Unofficial Google Chrome Extension

Post by Shady »

Yep that fixed the icons at newzbin.
Although when i click one, nothing get's added to the queue still.. I think it's a chrome 5.0 issue, it's a beta afterall.
I'l try getting a current stable version and will try again!
tret
Full Member
Full Member
Posts: 148
Joined: August 2nd, 2008, 2:07 pm

Re: Unofficial Google Chrome Extension

Post by tret »

Shady wrote: Yep that fixed the icons at newzbin.
Although when i click one, nothing get's added to the queue still.. I think it's a chrome 5.0 issue, it's a beta afterall.
I'l try getting a current stable version and will try again!
Newzbin one-click is working as expected for me now. Icons change and clicking on one sends the job to the Sab Queue. I'm using Chrome 5.0.307.11 beta w/ Ubuntu Karmic 32bit
aPex
Newbie
Newbie
Posts: 2
Joined: February 27th, 2010, 1:33 pm

Re: Unofficial Google Chrome Extension

Post by aPex »

very nice add-on, i just love it!
Is there going to be support for nzbindex.com / nzbindex.nl that would be awesome! (SABstatus extention has it, but the rest of that plugin sucks. :)

Keep it up!
bleomycin
Newbie
Newbie
Posts: 10
Joined: February 28th, 2010, 12:10 am

Re: Unofficial Google Chrome Extension

Post by bleomycin »

Great work! Just one thing im unsure of, it seems i have to keep sabnzbd open in another tab for your plugin to work, otherwise it loses connection. I have a username and password set in sabnzbd im unsure if that makes a difference, i connect with https://user:pass@ip:port/sabnzbd/
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Unofficial Google Chrome Extension

Post by switch »

Yes, I noticed that the other day; should probably put a warning on the settings page about this. It is not a bug with my extension, but a limitation of Chrome and their support of self signed SSL certificates.
bleomycin
Newbie
Newbie
Posts: 10
Joined: February 28th, 2010, 12:10 am

Re: Unofficial Google Chrome Extension

Post by bleomycin »

ohhh, alright. So if i switch over to regular http it shouldn't be a problem? Thanks for the reply!
Shady
Newbie
Newbie
Posts: 24
Joined: June 20th, 2009, 9:00 pm

Re: Unofficial Google Chrome Extension

Post by Shady »

Hi tret,

Okay that's weird, well it doesn't work for me with Chrome 5.0.342.3 dev on Ubuntu 64bit. I'l change versions to yours to check if it works!
Shady
Newbie
Newbie
Posts: 24
Joined: June 20th, 2009, 9:00 pm

Re: Unofficial Google Chrome Extension

Post by Shady »

Okay i reverted to that same build deleted config reinstalled same problem.
So i did some bug finding (messing in the extensions code) and experimented with settings.
Turns out that for some reason when my htaccess is enabled the one-click doesn't work.
When i turned it off at server side it worked perfectly.
i use this url scheme as the sabnzbd url http://user:[email protected]/nzb/

i played around with adding username and password in the $.ajax of the sendtosab function in common.js but that didn't work at all.
the strange thing is that everything else works perfectly. just the sending to sab is not. Queue-updates pausing etc all works perfectly with htaccess.
Shady
Newbie
Newbie
Posts: 24
Joined: June 20th, 2009, 9:00 pm

Re: Unofficial Google Chrome Extension

Post by Shady »

Here a small portion of the apache log, i'm guessing that although for queue the session username and password are used, for background actions they are not. thus no username / password is passed along and it returns a 401.
You stated that moving it in background.html would improve things maybe.
As i said i also included a username: 'user', password: 'password', in the $.ajax but that didn't help at all.

192.168.0.6 - - [12/Mar/2010:17:17:04 +0100] "GET /nzb/api?apikey=3d2da55e891326b1e7a6bd8d746949e1&mode=queue&output=json&limit=5 HTTP/1.1" 401 406 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.11 Safari/532.9"
192.168.0.6 - - [12/Mar/2010:17:17:05 +0100] "GET /nzb/ HTTP/1.1" 401 408 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.11 Safari/532.9"
192.168.0.6 - username [12/Mar/2010:17:17:06 +0100] "GET /nzb/ HTTP/1.1" 200 3236 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.11 Safari/532.9"
192.168.0.6 - username [12/Mar/2010:17:17:06 +0100] "POST /nzb/queue/ HTTP/1.1" 200 593 "http://www.domain.nl/nzb/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.11 Safari/532.9"
192.168.0.6 - username [12/Mar/2010:17:17:06 +0100] "POST /nzb/history/ HTTP/1.1" 200 2231 "http://www.domain.nl/nzb/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.11 Safari/532.9"
192.168.0.6 - username [12/Mar/2010:17:17:08 +0100] "GET /nzb/ HTTP/1.1" 200 3236 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.11 Safari/532.9"
192.168.0.6 - username [12/Mar/2010:17:17:08 +0100] "POST /nzb/queue/ HTTP/1.1" 200 593 "http://www.domain.nl/nzb/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.11 Safari/532.9"
192.168.0.6 - username [12/Mar/2010:17:17:08 +0100] "POST /nzb/history/ HTTP/1.1" 200 2231 "http://www.domain.nl/nzb/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.11 Safari/532.9"
192.168.0.6 - - [12/Mar/2010:17:17:14 +0100] "OPTIONS /nzb/api?apikey=3d2da55e891326b1e7a6bd8d746949e1&mode=addurl&name=http%3A%2F%2Fwww.tvnzb.com%2Fnzb%2F37990 HTTP/1.1" 401 406 "http://www.tvnzb.com/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.9 (KHTML, lik$
192.168.0.6 - - [12/Mar/2010:17:17:15 +0100] "OPTIONS /nzb/api?apikey=3d2da55e891326b1e7a6bd8d746949e1&mode=addurl&name=http%3A%2F%2Fwww.tvnzb.com%2Fnzb%2F37991 HTTP/1.1" 401 406 "http://www.tvnzb.com/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.9 (KHTML, lik$
192.168.0.6 - - [12/Mar/2010:17:17:15 +0100] "OPTIONS /nzb/api?apikey=3d2da55e891326b1e7a6bd8d746949e1&mode=addurl&name=http%3A%2F%2Fwww.tvnzb.com%2Fnzb%2F37934 HTTP/1.1" 401 406 "http://www.tvnzb.com/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.9 (KHTML, lik$
1

I think this holds the answer:
http://coderseye.com/2007/how-to-do-htt ... -ajax.html
Last edited by Shady on March 12th, 2010, 11:39 am, edited 1 time in total.
vinister
Jr. Member
Jr. Member
Posts: 53
Joined: March 13th, 2010, 1:38 pm

Re: Unofficial Google Chrome Extension

Post by vinister »

thanks for this extension!

Works great here.  There is nowhere to put in your username and password, but it just works anyways?  Why is this?

I tested with newzbin and the one-click is working for me.
Shady
Newbie
Newbie
Posts: 24
Joined: June 20th, 2009, 9:00 pm

Re: Unofficial Google Chrome Extension

Post by Shady »

I fixed it!

Here's a workaround for some people that use htaccess instead of the user/password:
For this you need apache and the permissions to add/edit your virtual host, here's mine

Code: Select all

NameVirtualHost *
<VirtualHost *>
	#your other stuff can go here#

        #Sabnzbd Start
        ProxyRequests Off
        <Proxy *>
        Order deny,allow
        Deny from all
        allow from all
        </Proxy>

        <Location /nzb>
        order deny,allow
        deny from all
        allow from 192.168.0
        satisfy any

        ProxyPass http://localhost:8080/sabnzbd
        ProxyPassReverse http://localhost:8080/sabnzbd
        Options Indexes Includes FollowSymLinks

        AuthName "Sabnzbd"
        AuthType Basic
        AuthUserFile /etc/shadow
        Require valid-user
        </Location>

        <Location "/nzb/api">
                allow from all
        </Location>
        #Sabnzbd End

	#your other stuff can go here#
</VirtualHost>
This gives you access to sabnzbd by going to www.yourdomain.com/nzb
I use /etc/shadow as my htaccess file, you can specify another
This leaves your api unprotected but since you use a apikey it's safe enough.
The allow from 192.168.0 and satisfy any means that if either your ip starts with 192.168.0 or you have a username/password you can get through to the site.
ProxyRequests off is very important! you don't want to be a proxy for everybody on the net.
That means that you won't get asked for username/password at home, but you could get them at work.

Hopefully it's of some use to some people!
Post Reply