Renaming Daily Shows like the Daily Show or Colbert Report

Post here any questions about how to use TVRename.

Renaming Daily Shows like the Daily Show or Colbert Report

Postby gbdesai » Tue Feb 24, 2009 8:48 am

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?
gbdesai
 
Posts: 7
Joined: Fri Feb 06, 2009 12:48 pm

Re: Renaming Daily Shows like the Daily Show or Colbert Report

Postby sstteevvee » Thu Feb 26, 2009 11:18 pm

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.
Vote for future features here!
User avatar
sstteevvee
Site Admin
 
Posts: 752
Joined: Sat Feb 16, 2008 1:25 pm

Re: Renaming Daily Shows like the Daily Show or Colbert Report

Postby gbdesai » Fri Feb 27, 2009 12:34 am

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.
gbdesai
 
Posts: 7
Joined: Fri Feb 06, 2009 12:48 pm

Re: Renaming Daily Shows like the Daily Show or Colbert Report

Postby sstteevvee » Sat Feb 28, 2009 11:33 am

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:

Code: Select all
(^|[^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.
Vote for future features here!
User avatar
sstteevvee
Site Admin
 
Posts: 752
Joined: Sat Feb 16, 2008 1:25 pm

Re: Renaming Daily Shows like the Daily Show or Colbert Report

Postby gbdesai » Sun Mar 01, 2009 1:22 am

That worked masterfully! Thanks!
gbdesai
 
Posts: 7
Joined: Fri Feb 06, 2009 12:48 pm

Re: Renaming Daily Shows like the Daily Show or Colbert Report

Postby mysciguy » Sun Apr 11, 2010 11:56 am

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
 
Posts: 2
Joined: Sun Apr 11, 2010 11:51 am

Re: Renaming Daily Shows like the Daily Show or Colbert Report

Postby mysciguy » Sun Apr 11, 2010 3:14 pm

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).
mysciguy
 
Posts: 2
Joined: Sun Apr 11, 2010 11:51 am

Re: Renaming Daily Shows like the Daily Show or Colbert Repo

Postby Deimos » Wed Apr 28, 2010 11:39 pm

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.
Deimos
 
Posts: 6
Joined: Sat Feb 06, 2010 5:06 pm

Re: Renaming Daily Shows like the Daily Show or Colbert Repo

Postby sstteevvee » Sun May 02, 2010 3:59 pm

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".
Vote for future features here!
User avatar
sstteevvee
Site Admin
 
Posts: 752
Joined: Sat Feb 16, 2008 1:25 pm

Re: Renaming Daily Shows like the Daily Show or Colbert Repo

Postby Deimos » Thu May 06, 2010 1:00 am

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?
Deimos
 
Posts: 6
Joined: Sat Feb 06, 2010 5:06 pm

Next

Return to Help!

Who is online

Users browsing this forum: No registered users and 1 guest