elenanincevic / sabconnect

Automatically exported from code.google.com/p/sabconnect
0 stars 0 forks source link

nzbmatrix function findNZBId(elem) broken #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Download from nzbmatrix broken.  The function returns 
"http://nzbmatrix.com" + url, but the variable "url" already has 
"http://nzbmatrix.com" in it, so it duplicates the URL.

This function:
function findNZBId(elem)

Needs to be changed to be: (for all versions)

function findNZBId(elem) {
    var url = $(elem).attr('href');

    // 0.5a6 needs nzb-details not nzb-download in url
    url = url.replace('nzb-download', 'nzb-details');
    url = url.replace('http://nzbmatrix.com', '');

    return 'http://nzbmatrix.com' + url;

}

Please change this soon.

Original issue reported on code.google.com by Bryan.Rh...@gmail.com on 20 May 2010 at 11:20