Page 1 of 1

Change TV sorting

Posted: October 30th, 2009, 1:47 pm
by wally007
Hi , i'vebeen using sabnzbd+ along with its great TV sorting script but lately i've been getting few problems. Its not sabnzbd+ at fault but source files' but since we're here all trying for smooth automation i thought i'd ask how to customise TV sorting little bit further.

I'm using sab with Xbmc/Plex and for scraping purposes show like X factor are 90 % named correctly. But there are odd times when uploader uses (UK) at the end of any given show that throws everything into chaos and episode is alone in its own  SHOW_NAME (UK) \ SEASON X \ EPISODE X (UK).avi  and doesnt scrape ( since thetvdb.com doesnt recognize ( X factor (UK) show , just X factor )

Is there any way to exclude or tell sabnzbd+ to exclude that (UK) or (US) when moving/sorting shows ? If not how are you guys handling it ?

Re: Change TV sorting

Posted: October 30th, 2009, 2:45 pm
by switch
I think I added support into 0.5 to allow you to remove country names "(UK)" from tv sorting.

Re: Change TV sorting

Posted: October 30th, 2009, 8:59 pm
by wally007
thats cool. IS that going to be configurable ? Because sometimes its not (UK) but UK and i think it'd be great if we could have option to remove some unwanted stuff from file names. I've been hearing about .5 version for a few weeks now, is release looming or is it still early in development ?

Re: Change TV sorting

Posted: October 31st, 2009, 4:29 am
by switch
If I remember correctly, I added an option to normalise country names, such as always change .US. to (US) or to simply remove .US. and (US) from nzb names during sorting.

We are looking at getting a beta out for 0.5 asap

Re: Change TV sorting

Posted: October 31st, 2009, 6:08 am
by wally007
great news , thank you. I will sign up for alpha since i have 2 different OS' at home and like to tinker with this kind of stuff whenever i have some "free" time.

Re: Change TV sorting

Posted: October 31st, 2009, 6:33 am
by switch
The feature is still experimental, and as such you have to make a config change in sabnzbd.ini instead of through the web interface

Find tv_sort_countries

The following standardises (us), (Us), .US. into (US):
tv_sort_countries = 1

The following removed (US) and .US.:
tv_sort_countries = 2

The following disables the feature:
tv_sort_countries = 0

Re: Change TV sorting

Posted: November 1st, 2009, 4:12 am
by wally007
Will do.

does it work for ANY country or just US ? ( what i mean , will it work for .CA. ( Canada ) (AU) (Australia) etc... ?

Also is there a line where i can imput what gets removed/standardized ?

Thanks for following up with helpful info !!!

Re: Change TV sorting

Posted: November 1st, 2009, 6:03 am
by switch
Works for all country abbreviations that are used by tvrage (which in turn newzbin use).

Re: Change TV sorting

Posted: November 1st, 2009, 7:55 am
by wally007
Tried it three times and it doesnt seem to work ( .5.Alpha. 8 ).... in sabnzbd.ini i changed the line from

tv_sort_countries = 1

to

tv_sort_countries = 2

, restarted sabnzbd+ , redownloaded and added file with The.X.SHOWNAME.UK.S06E17.avi  , and UK stayed in the name of the file.  ( resulting file appeared in  The X SHOWNAME Uk\Season 6\The X SHOWNAME Uk - S06E17.avi

EDIT -> file  "The.Biggest.SHOWNAME.(Us).S08E07.avi" worked. Resulting file name was  \The Biggest SHOWNAME\Season 8\The Biggest SHOWNAME S08E07.avi.

So it seems *.UK.* and *.(Us).* is not treated same way. Hope this helps troubleshooting.

EDIT 2 --> SHOWNAME.(UK).avi gets properly adjusted to showname.avi. So it seems like there's a bug in .UK. and .US. removing.