Open arkag opened 3 years ago
I experienced a similar problem, but it was definitely with less information in the filename than you had. In my case, with the filenames only having episode title and video resolution, mnamer seems to have acknowledged my provided TVDb ID but then deferred to use guessit's results which placed the episode title as the series and it ran out of information for its guess. Some sort of logic where it could recognize a clash between the detected series name and the provided series name would be optimal. Here's an example:
$ mnamer --test --verbose --id-tvdb 85040 --media episode ./
testing mode
system
- date = 2021-12-20
- platform = Linux-5.13.19-1-pve-x86_64-with-debian-10.11
- arguments = ['--test', '--verbose', '--id-tvdb', '85040', '--media', 'episode', './']
- cache location = /home/username/.cache/mnamer-py3.7.sql
- python version = 3.7.3
- mnamer version = 2.5.4
- appdirs version = 1.4.4
- guessit version = 3.2.0
- requests version = 2.21.0
- requests cache version = 0.5.2
- teletype version = 1.1.0
settings
- targets = [PosixPath('.')]
- batch = False
- lower = False
- recurse = False
- scene = False
- verbose = True
- hits = 5
- ignore = ['.*sample.*', '^RARBG.*']
- language = None
- mask = ['.avi', '.m4v', '.mp4', '.mkv', '.ts', '.wmv', '.srt', '.idx', '.sub']
- no_guess = False
- no_overwrite = False
- no_style = False
- movie_api = tmdb
- movie_directory = None
- movie_format = {name} ({year}).{extension}
- episode_api = tvmaze
- episode_directory = None
- episode_format = {series} - S{season:02}E{episode:02} - {title}.{extension}
- version = False
- clear_cache = False
- config_dump = False
- config_ignore = False
- config_path = None
- id_imdb = None
- id_tmdb = None
- id_tvdb = 85040
- id_tvmaze = None
- no_cache = False
- media = episode
- test = True
- api_key_omdb = None
- api_key_tmdb = None
- api_key_tvdb = None
- api_key_tvmaze = None
- replace_before = {}
- replace_after = {'&': 'and', '@': 'at', ';': ','}
targets
- /mydata/Videos/Shows/C/Caprica/Apotheosis_1920x1080.mp4
- /mydata/Videos/Shows/C/Caprica/Blowback_1920x1080.mp4
- /mydata/Videos/Shows/C/Caprica/End of Line_1920x1080.mp4
- /mydata/Videos/Shows/C/Caprica/False Labor_1920x1080.mp4
- /mydata/Videos/Shows/C/Caprica/Ghosts in the Machine_1920x1080.mp4
- /mydata/Videos/Shows/C/Caprica/Gravedancing_1920x1080.mp4
- /mydata/Videos/Shows/C/Caprica/Here Be Dragons_1920x1080.mp4
- /mydata/Videos/Shows/C/Caprica/Know Thy Enemy_1920x1080.mp4
- /mydata/Videos/Shows/C/Caprica/Pilot - Part 1_1920x1080.mp4
- /mydata/Videos/Shows/C/Caprica/Pilot - Part 2_1920x1080.mp4
- /mydata/Videos/Shows/C/Caprica/Rebirth_1920x1080.mp4
- /mydata/Videos/Shows/C/Caprica/Reins of a Waterfall_1920x1080.mp4
- /mydata/Videos/Shows/C/Caprica/Retribution_1920x1080.mp4
- /mydata/Videos/Shows/C/Caprica/The Dirteaters_1920x1080.mp4
- /mydata/Videos/Shows/C/Caprica/The Heavens Will Rise_1920x1080.mp4
- /mydata/Videos/Shows/C/Caprica/The Imperfections of Memory_1920x1080.mp4
- /mydata/Videos/Shows/C/Caprica/There Is Another Sky_1920x1080.mp4
- /mydata/Videos/Shows/C/Caprica/Things We Lock Away_1920x1080.mp4
- /mydata/Videos/Shows/C/Caprica/Unvanquished_1920x1080.mp4
Starting mnamer
Processing Episode "Apotheosis_1920x1080.mp4" (1.25GB)
/mydata/Videos/Shows/C/Caprica/Apotheosis_1920x1080.mp4
using tvmaze
search parameters
- container = .mp4
- group = None
- language = None
- language_sub = None
- quality = 1080p
- synopsis = None
- media = episode
- series = Apotheosis
- season = None
- episode = None
- date = None
- title = None
- id_tvdb = 85040
- id_tvmaze = None
- extension = .mp4
select match
\u2771 Caprica - 01x01 - Pilot
Caprica - 01x02 - Rebirth
Caprica - 01x03 - The Reins of a Waterfall
Caprica - 01x04 - Gravedancing
Caprica - 01x05 - There is Another Sky
skip
quit
Since I'm passing it the full file path and it's still getting it wrong, this might be related to https://github.com/guessit-io/guessit/issues/460
Based on the command I'm running above, it seems like no matter what episode I run this on it's not detecting a potentially correct number for the episode. It's just defaulting to the first episode in season 5. Is this a known issue? If not, what can I do to make this work for the naming scheme I have currently?
I had to resolve this for now by upping the number of hits it shows me to 15+ so I can get the rest of my episodes renamed. As of right now automation seems off the table for me because I can't trust it to rename them based on the actual episode numbers.