Auto merge

Flain

26-04-2009 20:46:40

I just had an idea about auto merging filenames. What if tvrename was to do a series of checks to determine if a file is a double episode? This would make it easier than having to maintain all your double eps manually.

It could do something like
- Check if the next episode is missing
- Check the size of this ep, if its roughly double the size of the other eps in the folder, then treat it as a double ep?
- If the air date is the same for both eps this also increases the chance that its a double

If all above cases are true then merge the episode names into the one filename?

A further advanced check could be to read the running length from the file, but as i understand it tvrename doesnt analyse the actual file contents of anything?

sstteevvee

01-05-2009 15:43:08

Not a bad idea. I'll look into doing something like this, but also make it an option you need to turn on in the preferences.

jocke

02-05-2009 08:19:54

S01E12E13
S01E12-13

Episodes named in that way, should also be treated as a double episode. Don't know if TVR already does this, but yeah.

Flain

05-05-2009 13:21:52

Just one other (small) thing, when you merge episodes it creates the filename like:
"Show S01E01 - E02.mkv"
which is fine if you use "S0xE0x" naming format. However i (and probably some others somewhere out there...) use 01x01, so i end up with a filename of:
"Show 01x01 - E02.mkv. "

Would it be possible to include an option to drop the E? (or is it already possible and i'm just not seeing it?)

sstteevvee

10-05-2009 17:52:47

Episodes named in that way, should also be treated as a double episode.
TVRename doesn't automatically figure out for itself (yet) that there are double episodes. You have to manually set them up yourself by defining rules for the season, and merging the relevant episodes together.

If you have merged episodes 12 and 13, it will then just look for "S01E12" (or similar), assume that E13 is in that file as well, and rename it accordingly.

"Show 01x01 - E02.mkv. "
Go to the filename template editor, on the options menu, and put in something like:


{ShowName} {Season}x{Episode}[-{Episode2}] - {EpisodeName}

If you select a show/season in My Shows (particularly, one with a double episode) before opening that dialog, it will show you a preview for what that season's episodes will be named.

Flain

14-05-2009 16:45:05


Go to the filename template editor, on the options menu, and put in something like:


Sweet thanks!

pzam

03-07-2009 09:10:06

the file size should be about double on a 2x episode. if that can be checked for also.

Flain

17-07-2009 13:23:42

Ive also noticed thetvdb.com now has a kinda standard where multi part shows end like this:
showname-episode description (1)
showname-episode description (2)
etc

something else that can be added to increase the liklyhood that the episodes is a double ep

if running time could be read from the movie file that would be the ultimate, but then do you really want to mess around with something like that? you probably need to hook into one of those GPL DLLs or something from the xbmc project :P


If automerge is hard to implement then how about adding a "right click / merge" option to the episode list which pops up a window asking "how many episodes?" or something. It just seems to be the only time consuming aspect of tvrename for me right now.

Id imagine something like this in the rename box
- rename tab suggests an episode to rename
- right click episode and choose "merge"
- tv rename asks "how many episodes is in this file?"
- tv rename then alters the result of the "rename to" part so you can preview it before hitting rename

sstteevvee

20-07-2009 22:40:55

The DLLs from the xbmc project would have to be LGPL.. Using GPL stuff means that my project would have to be GPL'd.

I've got some ideas in mind for the auto merging of episodes. I'm working on a new "All in one" display, that essentially shows a "to do" list. One of those things could be a suggestion to merge two or more episodes into one, based on whatever criteria used (e.g. airdate, file size, runtime, etc.).

That could also support your suggested idea of a right-click for renaming items, to manually tell it how many more episodes to merge in (and update the corresponding rules for that season of the show).