TV Show post processing

Want something added? Ask for it here.
Post Reply
umdivx
Newbie
Newbie
Posts: 6
Joined: March 23rd, 2010, 5:57 pm

TV Show post processing

Post by umdivx »

Maybe this feature is there, or maybe it is not but hoping someone can either add it to the list or let me know how I can get it to work.

Lately there have been TV shows like The Americans where there was a 1961 series and now a 2013 series.

The issue is when you try and pull meta data from TheTVDB and using the API calls, it fails because its trying to pull the 1961 series meta data vs the 2013 series meta data.

If I manually re-name the file to The.Americans.2013.S02.E01.mkv the meta data gets pulled down correctly every time, but if I leave the 2013 part out it fails every time.

So the question is, with the TV post processing (series sorting) the options for re-naming in SAB does not include the option for including the year (%y) into the re-naming output.

Is there someone that can add this to the features request or help me figure out how I can go about adding it myself?

thank you in advance!
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: TV Show post processing

Post by shypike »

It's a little bit too specialized for SABnzbd.
I think this can be solved with a little pre-queue script (see: http://wiki.sabnzbd.org/user-pre-queue-script )
Like:

Code: Select all

@echo off
echo 1
set name=%1
set xname=%name:.Americans.=%
if %1 == %xname% goto end
set xname=%name:.2013.=%
if not %1 == %xname% goto end
set name=%name:.Americans.=.Americans.2013.%
echo %name%
:end
umdivx
Newbie
Newbie
Posts: 6
Joined: March 23rd, 2010, 5:57 pm

Re: TV Show post processing

Post by umdivx »

I will give it a try.

thank you
Post Reply