Match season-number ordered files to season-year ordered episode information

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Match season-number ordered files to season-year ordered episode information

Post by rednoah »

A. Match season-number ordered files to season-year ordered episode information:

1. Check if the episode information in the database matches the file names of your files:

Code: Select all

$ ls *.mp4
MythBusters.1x01.mp4
$ filebot -list --q MythBusters --db TheTVDB
MythBusters - 2003x01 - Jet Assisted Chevy
2. Use a custom --mapper to match Episode 2003x01 as Episode 1x01 and then format and rename as Episode 2003x01:

Code: Select all

$ filebot -rename *.mp4 --db TheTVDB -non-strict --mapper "episode.derive(s - y + 1, e)"
[MOVE] from [MythBusters.1x01.mp4] to [MythBusters - 2003x01 - Jet Assisted Chevy.mp4]


B. Match season-year ordered files to season-number ordered episode information:

1. Check if the episode information in the database matches the file names of your files:

Code: Select all

$ ls *.mp4
MythBusters.2003x01.mp4
$ filebot -list --q MythBusters --db TheMovieDB::TV
MythBusters - 1x01 - Jet-Assisted Chevy
2. Use a custom --mapper to match Episode 1x01 as Episode 2003x01 and then format and rename as Episode 1x01:

Code: Select all

$ filebot -rename *.mp4 --db TheMovieDB::TV -non-strict --mapper "episode.derive(s + y - 1, e)"
[MOVE] from [MythBusters.2003x01.mp4] to [MythBusters - 1x01 - Jet-Assisted Chevy.mp4]
:idea: Please read the FAQ and How to Request Help.
Post Reply