guessit-io / guessit

GuessIt is a python library that extracts as much information as possible from a video filename.
https://guessit-io.github.io/guessit
GNU Lesser General Public License v3.0
814 stars 92 forks source link

Wrong guess for: E:60 #637

Open PyR8zdl opened 4 years ago

PyR8zdl commented 4 years ago

Running guessit against E.60.2020.02.16.Remembering.Coach.Alto.720p.ESPN.WEB DL.AAC2.0.H.264 KiMCHi.mkv returns the wrong info.

The show's name is E:60 though the release names are E.60 due to illegal characters.

Guessit seems to think 60 is the episode number and E is the show title.

Is there any way to add some kind of special rule for this show?

Here is a sample of what guessit returns along with what it should return.

>>> name = 'E.60.2020.02.16.Remembering.Coach.Alto.720p.ESPN.WEB DL.AAC2.0.H.264 KiMCHi.mkv'
>>> guessit(name)
MatchesDict([('title', 'E'),
('episode', 60),
('date', datetime.date(2020, 2, 16)),
('episode_title', 'Remembering Coach Alto'),
('screen_size', '720p'),
('streaming_service', 'ESPN'),
('source', 'Web'),
('audio_codec', 'AAC'),
('audio_channels', '2.0'),
('video_codec', 'H.264'),
('release_group', 'KiMCHi'),
('container', 'mkv'),
('mimetype', 'video/x-matroska'),
('type', 'episode')])

It should instead return

MatchesDict([('title', 'E 60'),
('date', datetime.date(2020, 2, 16)),
('episode_title', 'Remembering Coach Alto'),
('screen_size', '720p'),
('streaming_service', 'ESPN'),
('source', 'Web'),
('audio_codec', 'AAC'),
('audio_channels', '2.0'),
('video_codec', 'H.264'),
('release_group', 'KiMCHi'),
('container', 'mkv'),
('mimetype', 'video/x-matroska'),
('type', 'episode')])
Toilal commented 3 years ago

This will be really hard to fix without breaking real "Ep 60" guessing.