Paulamonopoly wrote: ↑16 Jul 2023, 01:01
All my subtitles come in from the same folder, so while using -db TheMovieDB would be fantastic, it also tries to rename my TV Shows to unrelated Movies such as The Walking Dead Movie TMDb ID: 27115, so I thought I'd run TV Shows first and then Movies afterwards on the presumption that it would detect the seasons and episodes in the titles and then move on to the movies which wouldn't have seasons and episodes in the title. So far no false positives, but this is bound to happen surely ?
If you run into mismatches, please copy & paste the console output here in the forums so we can have a look at it.
EDIT:
In general, you'll want to
process movies and episodes separately, specifying either
--db TheMovieDB or
--db TheMovieDB::TV depending on the files you are passing along:
Console Output: Select all
$ filebot -rename Alias.1x01.mp4 --db TheMovieDB::TV --format "{n} {s00e00}" --action TEST --log INFO
[TEST] from [Alias.1x01.mp4] to [Alias S01E01.mp4]
$ filebot -rename Avatar.2009.mp4 --db TheMovieDB --format "{ny}" --action TEST --log INFO
[TEST] from [Avatar.2009.mp4] to [Avatar (2009).mp4]
If your files are all in the same folder, then you will have to find a solution for that first. This will be more or less easy depending on how files are named. You can use
find to find files that match your specific patterns:
Console Output: Select all
$ find . -type f
./Alias.1x01.mp4
./Avatar.2009.mp4
$ find . -type f -regex '.*[0-9][xE][0-9][0-9].*'
./Alias.1x01.mp4
Alternatively, you can use the
--file-filter option to include / exclude input arguments from processing using built-in heuristics:
Console Output: Select all
$ filebot -mediainfo . --format "{f.name}"
Alias.1x01.mp4
Avatar.2009.mp4
$ filebot -rename *.mp4 --file-filter 'f.episode' --db TheMovieDB::TV --format "{n} {s00e00}" -non-strict --action TEST --log INFO
[TEST] from [Alias.1x01.mp4] to [Alias S01E01.mp4]
$ filebot -rename *.mp4 --file-filter 'none{ f.episode }' --db TheMovieDB --format "{ny}" -non-strict --action TEST --log INFO
[TEST] from [Avatar.2009.mp4] to [Avatar (2009).mp4]
Please read
How do I process specific files with specific command-line options? for details and examples.
Paulamonopoly wrote: ↑16 Jul 2023, 01:01
Perfecting and Optimization comes soon, just trying to get things to work first
You'll want to use
--action TEST during prototyping and testing so that you can do test runs in rapid succession without actually moving files. Also, make sure to always post the complete command and console output in the future.