Page 1 of 1

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

Posted: 02 Feb 2022, 07:31
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]