Page 1 of 1

Folder sorting & Newzbin

Posted: September 17th, 2008, 8:10 am
by Eejit
Help desperately needed. I must be doing something wrong.

Version: 0.4.3
OS: Vista SP1

I've just set up a Newzbin account and have tried to get the TV shows auto sorted.
I haven't got round to setting up any RSS feeds, searches, etc, just browse Newzbin, download an NZB into the watch folder and then manually set the Category to tv in the queue.
The Wiki suggests that "Show Name - 1x01 - Episode Name.nzb" is the default newzbin naming. What I'm getting is:-
"show_name_-_4x01_-_Adrift_(Part_2).nzb"

Because of the underscores (I think), the folder sorting isn't working.  I get the error message :-
"2008-09-17 13:49:46,099 ERROR [tvsort] Error getting TV info (show_name_-_4x01_-_Adrift_(Part_2)_nzb)"
and a folder "show_name_-_4x01_-_Adrift_(Part_2)_nzb" is created under ../TV

Is there anyway I can get SABnzbd+ to parse with the underscores?
or am I doing something more fundementally wrong ? I suspect that this is the case as I've searched the forums and haven't seen mention of this before.

Re: Folder sorting & Newzbin

Posted: September 17th, 2008, 8:40 am
by switch
The example nzb name you gave (before I edited it out), did work for me and did not produce an error. It did however create the foldername "Show_Name_", so I will change the code to remove all underscores before it processes the nzb name.

I'm not sure why newzbin is giving you nzb's with underscores, didn't they stop that process long ago? What operating system are you on, and can you test a download with spaces instead of underscores in the nzb name.

Re: Folder sorting & Newzbin

Posted: September 17th, 2008, 10:15 am
by Eejit
After a bit more digging.

According to Newzbin "spaces and special characters not valid as filename in most filesystems are converted"
SAB, I believe, uses directnzb to get the proper title without underscores.
I am browsing Newzbin at the moment, downloading an NZB manually (It's offered with the underscores) and saving it in the watch folder.

If I edit the NZB filename to remove underscores and replace them with spaces, prior to dropping it into the watch folder, then it works exactly as you would expect.

I've no idea about newzbin and underscores as I've just recently signed up.  Oh, and I'm using Vista SP1.

Re: Folder sorting & Newzbin

Posted: September 17th, 2008, 11:31 am
by Eejit
Just installed EpisodeButler and as that is set up to ask SAB to get the NZB's everything now works perfectly.

Thanks for the help.

Re: Folder sorting & Newzbin

Posted: September 23rd, 2008, 2:30 am
by Fire69
I've got this problem also, but it's a little strange, because I get episode-names like "Prison_Break_ - 4x05.avi".
As you can see, while some underscores remain, there are also spaces in the name.

Newzbin gives me Prison_Break_-_4x05_-_Safe_and_Sound.nzb, so it's strange the episode name is not included in the final avi-filename?

Re: Folder sorting & Newzbin

Posted: September 23rd, 2008, 5:13 am
by shypike
This is not strange at all.
The name of the AVI file is determined by the uploader.
The title of the newzbin report (hence NZB filename) is determined by the newzbin report writer.
These are not the same people.
In general the newzbin reporters use correct names, while uploaders are quite sloppy.

Re: Folder sorting & Newzbin

Posted: September 23rd, 2008, 6:21 am
by switch
There is a bug in detecting the episode names when there are underscores instead of spaces, it is fixed for 0.4.5.

If you don't want any spaces at all you need to modify your tv sort string.
For example from:
%sn - S%0sE%0e - %en.%ext
to:
%sn_-_S%0sE%0e_-_%en.%ext

Re: Folder sorting & Newzbin

Posted: September 23rd, 2008, 8:16 am
by switch
It will still respect whatever spacing you give it in the nzb. For example if your nzb lists your show as "Show_Name" it will keep the underscore in the naming. We thought about replacing it with a space but decided against it.

I'm still unsure why newzbin is serving you filenames with underscores in. In both XP and Ubuntu it gives me an nzb with spaces in its name.

Re: Folder sorting & Newzbin

Posted: September 23rd, 2008, 8:56 am
by Fire69
Did some more testing.

Newzbin was working fine until a week ago.  I'm using Chrome instead of IE.
In the latest builds of Chrome there was a bug, you couldn't download anything anymore (so no more nzb's from newzbin either).
So I used IE for downloading the nzb's.  That's when I started getting the underscores.

I just got a new Chrome-build, the downloads are working again now.  And guess what... Chrome gives me nzb's without underscores, IE with underscores!!!