Renaming Daily Shows like the Daily Show or Colbert Report

gbdesai

24-02-2009 09:48:49

Is there any way to have TV Rename recognize or parse show names that have air dates in them like the Daily Show, Colbert Report, Late Show with David Letterman, etc.? Here is an example of how such a file may be named...

the.colbert.report.11.12.2008.xvid.avi
the.colbert.report.12.04.2008.xvid.avi

TheTVDB has artificial episode numbers along with the description that holds a corresponding date. Can TV Rename parse the data 11.12.2008 and match it with the description for the episode to then rename the file with the correct season and episode number?

sstteevvee

27-02-2009 00:18:03

Parsing the date from the filename is already somewhere on my to-do list. For now, you'll have to manually edit the fake season+episode number into the filename. Alternatively, you can turn on "use sequential episode number matching" (edit the show in My Shows), then just put the overall episode number into the filename, e.g.: rather than S02E04, put "36" somewhere in the filename. TVRename will then turn that back into S02E04, though.

I'll move date-based matching up my priority list a bit. I'll also eventually make it possible to override the file naming template per-show, and let that template also insert the date that the episode aired.

gbdesai

27-02-2009 01:34:01

Very cool. Ok, I'll be greedy and ask one more question. I'm fairly technical but can't seem to puzzle this one out...

When I grab certain shows like Lost, they unpack to a name like "Lost (2004) - S05E08 - Episode Title.mkv" since the actual show name is "Lost" the automated find and organize doesn't find the file. Is there somewhere I can specify per show expected file name parameters? That way since I always know that Lost will come in as "Lost (2004) - S0XE0X - EpTitle" it will understand it and properly rename and move the file? Sorry if I am missing something obvious.

sstteevvee

28-02-2009 12:33:22

It is most likely it is seeing the "2004" and interpreting it as "season 20, episode 04". Go to Options->Filename processors, and change the first one to be:


(^|[^a-z])s?(?<s>[0-9]+)[ex](?<e>[0-9]{2,})[^a-z]

i.e. remove the "?" after the [ex] in the middle.

I'm changing the default filename matchers in future versions so that one problematic style has a separate matching expression, and is off by default.

Let me know if that helps or not.

gbdesai

01-03-2009 02:22:12

That worked masterfully! Thanks!

mysciguy

11-04-2010 11:56:42

Just wanted to say that having search by air date would be a big big plus. I've scoured the internet and can't find anything that currently does this, although it seems to be implemented in the TVDB api.

mysciguy

11-04-2010 15:14:28

I've written a temporary work around for anyone who's interested. It's a python script which grabs all the air dates for a given show from the local TVDB xml file maintained by TVRename. It then scrapes the date from the filename, matches them against the database and renames to the S_E_ format, which can then be processed by TVrename.

If anyone wants the code let me know and I'll email it to you (or if anyone wants to host it that's fine too).

Deimos

28-04-2010 23:39:57

Just wanted to say I would love to see this feature make its way into TV Rename. The newer version of EpNamer handles date scrapping great but I really prefer everything else about TV Rename.

sstteevvee

02-05-2010 15:59:49

Due to overwhelming demand... I've added in in 2.2.0b5, which I'll upload later today. :)

It is currently off by default, though I'll change that if it works out well - so all feedback on how well it works is welcome.

Go to Options > Preferences > General, and turn on the "Look for airdate in filename" checkbox at the bottom.

It will look for dates in the formats year-month-day, day-month-year, and month-day-year, with two digit day and month, and two or four digit years.

The date must match that entered for the episode's airdate on TheTVDB.com, i.e. it is not converted into your local timezone like most other dates displayed in TVRename.

Finding a date in a filename will take precedence over any "SxxEyy" type stuff in the name.

Incidentally, for shows like Colbert Report, once it is moved and renamed into your media library, how much do you want to keep the airdate in the filename? i.e. what is the demand for a custom renaming template, per show? .. or are you happy for it to just become "S06E58 - Blah blah.avi".

Deimos

06-05-2010 01:00:26

For me I am happy for it to be renamed as SxxEyy. I am sure there are some who wish to preserve the airdate in the file name but its not important to me at this time. I just like having it in SxxEyy format so that meta-data can be easily pulled down for my media center. Thanks for getting this implemented. It seems to be working great so far on the episodes I threw at it.

EDIT: Well not every file apparently. This episode of The Daily Show just showed up in my completed folder which is where TVRename scans.
The.Daily.Show.2010.05.04.Rosalynn.Carter.HDTV.XviD-FQM.[VTV]
TVRename hasn't recognized it. I have tried moving the date to D.M.Y format and M.D.Y format. I've tried subbing dashes for periods. I've tried removing the extra info tags (HDTV XviD etc) and nothing has helped. TVRename just doesn't seem to see it. Any suggestions?

Thunderchicken

13-05-2010 11:49:41

I think the problem is the show name includes 'with jon stewart'; try renaming the file to

The.Daily.Show.with.Jon.Stewart.2010.05.04.Rosalynn.Carter.HDTV.XviD-FQM.[VTV]

three20three

16-06-2010 08:27:03

I'm also not having luck with this. Can someone who has gotten it to work post their settings?

My RSS feed is showing the following if it helps:
The Colbert Report 2010 06 14 (HDTV-FQM) [VTV]

conception

22-06-2010 02:34:04

Can i ask if you work in a META TAGs in site do you mean your JOB is a part of SEO??? Free Movies

conception

23-06-2010 00:04:37

(^|[^a-z])s?(?<s>[0-9]+)[ex](?<e>[0-9]{2,})[^a-z] i search for this error in the internet for what would be the proper code but suddenly i can find the way to fix it... Watch Movies

bsunderland

19-09-2010 17:06:35

Hi - love this tool and pleased about the new airdate feature - but unfortunately for me my show comes with yyyymmdd formate (no delimiters)
Is there a way round beyond me manually adding two slashes ?

EastEnders.20100716.AC@thebox.bz


Thanks
Ben

wizzle

09-10-2010 11:27:33

I'm also stuck with this issue, and I've also been getting inconsistent results with these types of shows. Sometimes it recognizes the date and does a lookup, usually it does not, even using the same format. All of mine are formatted YYYY.MM.DD, although I'm sure there are others.

Let me know if I can help out. I'm a C# developer and I have a strong background in regular expressions, specifically .NET's.

wizzle

17-10-2010 15:41:50

I have a working fix for the date issue. sstteevvee, ping me whenever you have a chance - I'd like to get you the changes. It's only a few lines of code.

W

firedog7881

21-11-2010 02:28:01

I am getting the same failures with The Daily Show and The Colbert Report. My file names are as follows:

The.Daily.Show.2010.11.10.Mick.Foley.HDTV.XviD-FQM.[VTV].avi
The.Colbert.Report.2010.11.10.Martha.Stewart.HDTV.XviD-FQM.[VTV].avi

This worked pretty good when I initially turned on the feature and now it doesn't want anything to do with it.

Every other show works beautifully. This is an awesome program. The only request other than recognizing the dates is scheduling and error control when a copy\move doesn't complete successfully. Keep up the great work.