Change TV sorting

Feel free to talk about anything and everything in this board.
Post Reply
wally007
Release Testers
Release Testers
Posts: 155
Joined: August 28th, 2009, 5:24 pm

Change TV sorting

Post 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 ?
Last edited by wally007 on October 30th, 2009, 1:49 pm, edited 1 time in total.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Change TV sorting

Post by switch »

I think I added support into 0.5 to allow you to remove country names "(UK)" from tv sorting.
wally007
Release Testers
Release Testers
Posts: 155
Joined: August 28th, 2009, 5:24 pm

Re: Change TV sorting

Post 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 ?
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Change TV sorting

Post 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
wally007
Release Testers
Release Testers
Posts: 155
Joined: August 28th, 2009, 5:24 pm

Re: Change TV sorting

Post 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.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Change TV sorting

Post 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
wally007
Release Testers
Release Testers
Posts: 155
Joined: August 28th, 2009, 5:24 pm

Re: Change TV sorting

Post 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 !!!
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Change TV sorting

Post by switch »

Works for all country abbreviations that are used by tvrage (which in turn newzbin use).
wally007
Release Testers
Release Testers
Posts: 155
Joined: August 28th, 2009, 5:24 pm

Re: Change TV sorting

Post 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.
Last edited by wally007 on November 1st, 2009, 3:20 pm, edited 1 time in total.
Post Reply