mpNZB v1.4 (Updated 18-12-2009) (11 Viewers)

bloasfist

Portal Pro
November 16, 2006
177
10
Home Country
Netherlands Netherlands
Found an inconsistency: when i hit the 'refresh' button in the job queue screen it jumps back to the search results, where i would expect it to refresh the download status of the job queue... Can this be altered?
 

jocke

Portal Pro
January 27, 2008
109
6
Home Country
Norway Norway
So, where do I enter the API-key?

2009-05-02 03:27:43,588 WARNING [interface] API Key missing, please enter the api key from config>general into your 3rd party program:
 

jmccarthy14

Portal Member
May 2, 2009
10
0
so i verified the lower number of results. Searching for 'arrested development' in newzbin (the only one i had trouble getting more than one result) for example yields only 1 result each time. If i do 'missing episodes' it will find a specific episode of arrested development, so it will find different files. But it will only show one /let me download the one it shows, in this instance a 1.03GB version of the episode.

i'd like to be able to choose from the results. i typed in the rss url used in sites.xml to verify multiple results came up with my query, and they do. it seems that the program only grabs the first entry for newzbin. Except - if i do say gossip | girl it will print one result 'gossip girl' and another for the word girl . i'd guess that if i did
words | are | pretty
it may give me 3 results?

i'm gonna mess with the xml files some more, and if i can't find a workaround i guess i'll have to stop complaining and install vstudio on one of my machines again to see if i can help out.
 

jmccarthy14

Portal Member
May 2, 2009
10
0
also in favor of grabbing more info from the newzbin feeds -- i like to avoid dvd files when possible for example, and it'd be nice to see this, or things like 'hard subs' etc. Don't see much reason to use anything but newzbin for usenet anyway, they even made the NZB format. but the stuff you'r working on may be stacking pretty high
so maybe if i take a break from finals this week i can send you something to look at, see if you want to add it?

anyway, other than my favorite search being poor atm for me (only, it seems) the plugin works and looks great. Someone was asking earlier if you could rename the files you download -- SAB can do that for you in a format that TV Series will auto-parse. And the SAB categories setup is great for putting movies in the movies plugin folder and series in the other -- my shows appear in mytvseries within a minute of them finishing download (though i guess the shows are small/dont take long to par/unzip).


EDIT/FIXED: I was looking at your xpath, and wondering why it wouldn't grab all the items for newzbin but it would for the others. Then i looked at the XML/rss feed that newzbin was handing your program, and saw how many items there were, so i figured maybe i should limit my results. So i limited my 'feed' maximum initially to ten, then all the way to 90, and Newzbin feeds now returned more results, 90 actually (rather than one). It didn't affect my searches though, so i went into the sites.xml and replaced [max] in the search with 50, and now newzbin returns more than one result! Great, program working. May still try to mess with it for newzbin data, but thats less important. Didn't look thoroughly through your code but its possible that the 0 max has newzbin return only 1 result, or somewhere else in your code it limits it. Not sure. Either way this is a quick fix if anyone else was having trouble with newzbin results.
 

MrTRiX

Community Plugin Dev
October 28, 2006
210
41
Home Country
Canada Canada
also in favor of grabbing more info from the newzbin feeds -- i like to avoid dvd files when possible for example, and it'd be nice to see this, or things like 'hard subs' etc. Don't see much reason to use anything but newzbin for usenet anyway, they even made the NZB format. but the stuff you'r working on may be stacking pretty high
so maybe if i take a break from finals this week i can send you something to look at, see if you want to add it?

anyway, other than my favorite search being poor atm for me (only, it seems) the plugin works and looks great. Someone was asking earlier if you could rename the files you download -- SAB can do that for you in a format that TV Series will auto-parse. And the SAB categories setup is great for putting movies in the movies plugin folder and series in the other -- my shows appear in mytvseries within a minute of them finishing download (though i guess the shows are small/dont take long to par/unzip).


EDIT/FIXED: I was looking at your xpath, and wondering why it wouldn't grab all the items for newzbin but it would for the others. Then i looked at the XML/rss feed that newzbin was handing your program, and saw how many items there were, so i figured maybe i should limit my results. So i limited my 'feed' maximum initially to ten, then all the way to 90, and Newzbin feeds now returned more results, 90 actually (rather than one). It didn't affect my searches though, so i went into the sites.xml and replaced [max] in the search with 50, and now newzbin returns more than one result! Great, program working. May still try to mess with it for newzbin data, but thats less important. Didn't look thoroughly through your code but its possible that the 0 max has newzbin return only 1 result, or somewhere else in your code it limits it. Not sure. Either way this is a quick fix if anyone else was having trouble with newzbin results.

Good to hear you got it working, I've never tried putting 0 in the max results as that doesn't = unlimited the way I coded it. Perhaps in the next release I won't allow 0 to be entered. If you don't specify a max in the URL then it gives the site default which is usually lower, that's why I have that box and not so that unlimited can be entered. Good detective work and thanks for the input.

As for Newzbin passing more information, I have been looking into that but at the moment its hard because attributes for the files aren't in the RSS unless you login or add the "fauth" part to the URL. Once I add cookies/login to the Sites.XML then I can grab more information from Newzbin.

So, where do I enter the API-key?

2009-05-02 03:27:43,588 WARNING [interface] API Key missing, please enter the api key from config>general into your 3rd party program:

API Key's are part of SABnzbd 0.4.9 and up, which I don't currently support because that feature broke a few of my queue control things. Once 0.5 comes out they are redoing the entire API and I will then support that feature.

Found an inconsistency: when i hit the 'refresh' button in the job queue screen it jumps back to the search results, where i would expect it to refresh the download status of the job queue... Can this be altered?

I did that on purpose so you could go back to your results after looking at the queue, to refresh the queue you just press the Job Queue button again. I may even make it auto refresh the queue in the future if you happen to be looking at it. Using the same interval as that status information updates on.

Could you please look at adding support for NZBMatrix: NZB Usenet Downloads. NZBs Downloads

I will look into it but its a lot harder because it requires login and uses ZIP files for non-VIP members. Also there default RSS feeds only have 15 items which seems a bit low to me and not worth adding a ton of code to support. It is on my list though and I will keep it in mind for a future release. Also in SABnzbd 0.5 there is suppose to be support for NZBMatrix which should be enough for me to add the RSS part of things.

Also sorry for my late response to these last few posts my internet has been on the fritz last few days.
 

bloasfist

Portal Pro
November 16, 2006
177
10
Home Country
Netherlands Netherlands
[..]
Someone was asking earlier if you could rename the files you download -- SAB can do that for you in a format that TV Series will auto-parse. And the SAB categories setup is great for putting movies in the movies plugin folder and series in the other -- my shows appear in mytvseries within a minute of them finishing download (though i guess the shows are small/dont take long to par/unzip).
[..]
That was me ;) I know SAB has a 'tv sorting' option. However, for this to work, SAB needs to be able to identify the file from the original filename (as far as i understand). Sometimes the .nzb filename is too messed up for this (happens a lot with results of searches on nzbindex.nl for instance). See also this post.
 

jmccarthy14

Portal Member
May 2, 2009
10
0
Mm. I didn't change the max in searches to 0 though, i just guessed that might have been what it was set at? I only saw an option in the config for max feed size. Whatever the default was for newzbin was returning 1 result.

As for the metadata or w/e, I typed in the exact url you have in your sites.xml and, while logged in (should be auto with sabnzbd) it gave data like video format and source (good to know if you'r downloading a cam), seems like should be a matter of adding the extra tags within <item> and then grabbing it with a if(search.equalsnewzbin) and just adding it to the guimenu or something, maybe having it show on the list. But like i said i can look into it to help out

EDIT: scratch that. Guess i just figured you logged in with the sab info, but from what you'r saying i'm guessing you just get the RSS info while not logged in, and just hand the ID# to sab to download. So i guess yeah you were 100% right it'll have to wait until you add the option to store our username/pass.

bloasfist: yeah i noticed a download that got mangled because of the nzb title, but that was one out of a handful so far. If it happens often enough, believe sabnzbd is python, so should be pretty simple (but may not be, haven't looked) to add a failcheck when it tries to parse the nzb filename -- if it fails you could have it request a new name or format. That part should be okay, tying that in with mpnzb would require writing some small api hack though. So it'd have to be pretty common.
 

MrTRiX

Community Plugin Dev
October 28, 2006
210
41
Home Country
Canada Canada
[..]
Someone was asking earlier if you could rename the files you download -- SAB can do that for you in a format that TV Series will auto-parse. And the SAB categories setup is great for putting movies in the movies plugin folder and series in the other -- my shows appear in mytvseries within a minute of them finishing download (though i guess the shows are small/dont take long to par/unzip).
[..]
That was me ;) I know SAB has a 'tv sorting' option. However, for this to work, SAB needs to be able to identify the file from the original filename (as far as i understand). Sometimes the .nzb filename is too messed up for this (happens a lot with results of searches on nzbindex.nl for instance). See also this post.

Perhaps my plug-in is not replacing bad characters in the URL. Could you give me an example search and a NZB to download. I will get it to work and release a fix. Probably that damn single quote that I forgot to replace, I will wait for your response on this one.

Mm. I didn't change the max in searches to 0 though, i just guessed that might have been what it was set at? I only saw an option in the config for max feed size. Whatever the default was for newzbin was returning 1 result.

As for the metadata or w/e, I typed in the exact url you have in your sites.xml and, while logged in (should be auto with sabnzbd) it gave data like video format and source (good to know if you'r downloading a cam), seems like should be a matter of adding the extra tags within <item> and then grabbing it with a if(search.equalsnewzbin) and just adding it to the guimenu or something, maybe having it show on the list. But like i said i can look into it to help out

EDIT: scratch that. Guess i just figured you logged in with the sab info, but from what you'r saying i'm guessing you just get the RSS info while not logged in, and just hand the ID# to sab to download. So i guess yeah you were 100% right it'll have to wait until you add the option to store our username/pass.

@bloasfist: yeah i noticed a download that got mangled because of the nzb title, but that was one out of a handful so far. If it happens often enough, believe sabnzbd is python, so should be pretty simple (but may not be, haven't looked) to add a failcheck when it tries to parse the nzb filename -- if it fails you could have it request a new name or format. That part should be okay, tying that in with mpnzb would require writing some small api hack though. So it'd have to be pretty common.

Ya I grab the RSS stuff inside the plug-in. I agree it would be great information to have as I use my plug-in a lot and never know which is which. Once I have more time I will add this feature. Sorry it has not been added yet but I was really into building Sites.XML and I kinda lost the site specific stuff in the process.

Again thanks for your information and helping out in the thread.
 

bloasfist

Portal Pro
November 16, 2006
177
10
Home Country
Netherlands Netherlands

Perhaps my plug-in is not replacing bad characters in the URL. Could you give me an example search and a NZB to download. I will get it to work and release a fix. Probably that damn single quote that I forgot to replace, I will wait for your response on this one.

I'ts not specifically bad characters. Sometimes the filename given to it by releasers isn't handled correctly by tvseries. For instance when downloading a south park episode like this one using the last hit on this results page, it would name the .nzb 'aaf-south-park.nzb' when using 'maak nzb' instead of downloading it manually (i suppose this is what mpnzb does internally). This .nzb filename becomes the folder name 'aaf-south-park.nzb' after parring/rarring and which is not recognized by tvseries. I know i can add a filter for files starting with 'aaf-' to tvseries which would fix this particular problem, but a possibility to manually enter the .nzb filename (thus extraction folder) from within mpnzb would be a generic fix for all these kind of situations.
 

Users who are viewing this thread

Top Bottom