Unofficial Google Chrome Extension

Got a program that plays well with SABnzbd? Share it here!
Pyrepenol
Newbie
Newbie
Posts: 3
Joined: June 13th, 2009, 8:48 am

Re: Unofficial Google Chrome Extension

Post by Pyrepenol »

Great extension, theres just a slight annoyance I found with sending Newzbin reports to sab.

On a page listing search results like this, clicking the SAB icon next to a report works fine. The problem I have though, is on a specific report page like this. The only thing I can find is the "Send to SABnzbd" button. Clicking it doesn't seem to do anything unless I check the files attached to the report, and even then Newzbin throws an error "Error:Select some Reports to perform the operation on!" and sabnzbd still doesn't recieve it.

In the next update could you add the same SAB icon to the report page, like the firefox plugin has?
Reedy
Release Testers
Release Testers
Posts: 3
Joined: July 23rd, 2009, 4:26 pm

Re: Unofficial Google Chrome Extension

Post by Reedy »

Minor issue, it currently reports its still downloading something, but the queue is empty, so most certainly isn't!
highend
Newbie
Newbie
Posts: 17
Joined: November 17th, 2009, 11:29 am

Re: Unofficial Google Chrome Extension

Post by highend »

I have the same issue as Pyrepenol.

SABnzbd Version: 0.5.0Beta5
Windows 7 32 Bit, German

SRWare Iron (Chrome) 4.0.275.2 (35162) (http://www.srware.net/software_srware_iron.php)

Apart from that a great addition to Chrome & SABnzbd!

Regards,
Highend
moontan
Newbie
Newbie
Posts: 26
Joined: August 5th, 2008, 5:50 pm

Re: Unofficial Google Chrome Extension

Post by moontan »

On google chrome 4.0.249.43

when i click on the sab icon on newzbin its greyed out for a second but then goes back to normal. It sends the report to sabnzbd so that isnt a problem, its just that you wouldnt know you clicked on the icon for that report unless you checked the queue on sabnzbd.
methanoid
Jr. Member
Jr. Member
Posts: 66
Joined: March 7th, 2008, 6:33 am

Re: Unofficial Google Chrome Extension

Post by methanoid »

Reedy wrote: Minor issue, it currently reports its still downloading something, but the queue is empty, so most certainly isn't!
Yes I noticed that and was checking here to report this bug. Its a great extension tho... and its one of 4-5 addons or extensions that had prevented me moving to Chrome from Firefox.

I'd love to see it support NZB intercept but if it never happens I am still very grateful for the work in doing the extension so far - THANKS!
tangx
Newbie
Newbie
Posts: 2
Joined: January 5th, 2010, 2:41 am

Re: Unofficial Google Chrome Extension

Post by tangx »

Thanks for your hard work on this Switch.

The 1 touch doesn't seem to work at all though with nzbmatrix.  tried it on 2 different machines.  The download icons on nzbmatrix.com changed to sab but once you click one it just turns green and nothing happens.

Sabnzbd 0.5.0b5
Chrome 4.0.249.43
^all up to date

Error in sabnzbd is
2010-01-04 23:26:26,565 ERROR: Error getting url https://nzbmatrix.com/api-nzb-download. ... e=&apikey= (cause= "Problem accessing nzbmatrix server (invalid_login)"

Got the same error both logged into my account on nzbmatrix and logged out of it.
vSaAmTp
Newbie
Newbie
Posts: 2
Joined: January 10th, 2010, 9:35 am

Re: Unofficial Google Chrome Extension

Post by vSaAmTp »

Can u add www.nzb.to? Thanks for the 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 »

tangx wrote: Thanks for your hard work on this Switch.

The 1 touch doesn't seem to work at all though with nzbmatrix.  tried it on 2 different machines.  The download icons on nzbmatrix.com changed to sab but once you click one it just turns green and nothing happens.

Sabnzbd 0.5.0b5
Chrome 4.0.249.43
^all up to date

Error in sabnzbd is
2010-01-04 23:26:26,565 ERROR: Error getting url https://nzbmatrix.com/api-nzb-download. ... e=&apikey= (cause= "Problem accessing nzbmatrix server (invalid_login)"

Got the same error both logged into my account on nzbmatrix and logged out of it.
Are your nzbmatrix username and nzbmatrix api key account details entered under "index sites" in sabnzbd configuration?
tangx
Newbie
Newbie
Posts: 2
Joined: January 5th, 2010, 2:41 am

Re: Unofficial Google Chrome Extension

Post by tangx »

switch wrote:
tangx wrote: Thanks for your hard work on this Switch.

The 1 touch doesn't seem to work at all though with nzbmatrix.  tried it on 2 different machines.  The download icons on nzbmatrix.com changed to sab but once you click one it just turns green and nothing happens.

Sabnzbd 0.5.0b5
Chrome 4.0.249.43
^all up to date

Error in sabnzbd is
2010-01-04 23:26:26,565 ERROR: Error getting url https://nzbmatrix.com/api-nzb-download. ... e=&apikey= (cause= "Problem accessing nzbmatrix server (invalid_login)"

Got the same error both logged into my account on nzbmatrix and logged out of it.
Are your nzbmatrix username and nzbmatrix api key account details entered under "index sites" in sabnzbd configuration?
I hadnt but i entered all the correct info now and even still sabconnect just stalls at "Trying to fetch NZB from http://nzbmatrix.com/api-nzb-download.p ... =xxxxxxxxx"

It never actually fetches any of the nzbs for the 1 touch.
Pip101
Newbie
Newbie
Posts: 1
Joined: January 1st, 2010, 9:06 am

Re: Unofficial Google Chrome Extension

Post by Pip101 »

Firstly, thanks for the extension - very handy.

I just came to see if you knew of this little problem and its resolution:
Reedy wrote: Minor issue, it currently reports its still downloading something, but the queue is empty, so most certainly isn't!
, but I see you've not addressed these reports directly. In case you weren't aware why (or for anyone else that wants to fix it before the next update), in background.html there's some code that causes the fetchInfo function to exit prematurely when the queue is empty; it tries to parse a non-existent item inside the "jobs" array. To fix it, I've simply replaced

Code: Select all

setPref('current_job', data.jobs[0].filename);
with

Code: Select all

if (data.jobs[0]) {
	setPref('current_job', data.jobs[0].filename);
} else {
	setPref('current_job', '');
}
FuManChuu
Newbie
Newbie
Posts: 15
Joined: January 17th, 2010, 5:34 pm

Re: Unofficial Google Chrome Extension

Post by FuManChuu »

Love the extension so far... in the absence of sabtab support, this is gonna get me through my dark times :D

However, the 1-click download button on newzbin, breaks my format and makes every edited post 2 lines long... am I the only one getting this type of reformatting?
User avatar
trmentry
Newbie
Newbie
Posts: 12
Joined: June 29th, 2008, 10:10 am

Re: Unofficial Google Chrome Extension

Post by trmentry »

Pyrepenol wrote: Great extension, theres just a slight annoyance I found with sending Newzbin reports to sab.

On a page listing search results like this, clicking the SAB icon next to a report works fine. The problem I have though, is on a specific report page like this. The only thing I can find is the "Send to SABnzbd" button. Clicking it doesn't seem to do anything unless I check the files attached to the report, and even then Newzbin throws an error "Error:Select some Reports to perform the operation on!" and sabnzbd still doesn't recieve it.

In the next update could you add the same SAB icon to the report page, like the firefox plugin has?

I see the same issue... but without the error.  I select just 1 file to download out of the post and click the "Send to SABnzbd" button, but nothing shows up in SAB and no error saying that there was a problem. 

Other than that, great extension.  Thank you very much.
juvenile38
Newbie
Newbie
Posts: 18
Joined: July 3rd, 2009, 1:39 pm

Re: Unofficial Google Chrome Extension

Post by juvenile38 »

I seem to be having the same problem as tangx. It was working at first but now all the sudden the one click doesn't work. If I download the same file and put it into my watch folder it works fine. Thanks and hope this can be fixed.
dekz
Newbie
Newbie
Posts: 2
Joined: February 22nd, 2010, 4:35 am

Re: Unofficial Google Chrome Extension

Post by dekz »

EDIT: nevermind nzbs.org requires authentication for downloading.

I haven't had much luck with it running in Chromium (and sending the correct string to the API). But I added support for NZBS.org (I think haven't been able to actually test it ><)
If my reading is correct for addToSABnzbd(addLink, nzburl, "addurl"); where nzburl is the entire nzb link then hopefully it should work.
Manifest

Code: Select all

{
      "js": [ "jquery-1.3.2.min.js", "common.js", "content_scripts/nzbsorg.js" ],
      "matches": [ "http://nzbs.org/", "https://nzbs.org/", "http://nzbs.org/*", "https://nzbs.org/*" ]
   },
nzbsorg.js

Code: Select all

//http://nzbs.org/index.php?action=getnzb&nzbid=307942
function addToSABnzbdFromNZBORG() {
    var img = chrome.extension.getURL('images/sab2_16_fetching.png');
    $(this).find('img').attr("src", img);
    
    // Find the newzbin id from the href
    var url = 'http://nzbs.org/'
    var nzburl = url.concat($(this).attr('href'));
    var addLink = this;
    addToSABnzbd(addLink, nzburl, "addurl");
    return false;

}
$('table a[href*="index.php?action=getnzb&nzbid="]').each(function() {
    var img = chrome.extension.getURL('/images/sab2_16.png');
    var href = $(this).attr('href');
    var link = '<a class="addSABnzbd" href="' + href + '"><img src="' + img + '" /></a> ';
    $(this).before(link);
    $('.addSABnzbd').click(addToSABnzbdFromNZBORG);
    
});

Keep me posted
Last edited by dekz on February 22nd, 2010, 8:21 am, edited 1 time in total.
Shady
Newbie
Newbie
Posts: 24
Joined: June 20th, 2009, 9:00 pm

Re: Unofficial Google Chrome Extension

Post by Shady »

Hey! I would like to mention that the extension doesn't work for chrome version 5.0.322.2 (on Ubuntu)
The settings page goes fine and it can pause the sabnzbd however information isn't retrieved because i can't resume it anymore.
Also sending nzbs/all website-related functions don't work aswell.

I would love for it to work with the latest chrome (which seems so much faster!))
Post Reply