Medusa icon indicating copy to clipboard operation
Medusa copied to clipboard

Post-processing parses "Nova.Vita" as title: Nova, other: ['PS Vita']

Open phoenix83 opened this issue 3 years ago • 0 comments

Describe the bug Post-processing parser incorrectly interprets "Vita" in the filename to mean PS Vita rather than part of the series name.

Example filename: Nova.Vita.S01E01.720p.WEBRip.x264-GalaxyTV.mkv

Parser result: title: Nova, other: ['PS Vita', 'Rip'], season: 1, episode: [1], screen_size: 720p, source: Web, video_codec: H.264, video_encoder: x264, release_group: GalaxyTV, container: mkv, type: episode, parsing_time: 0.00816488265991211, absolute_episode: [], quality: 720p WEB-DL, total_time: 0.013212442398071289

Post-processing fails with "This show isn't in your list" etc.

To Reproduce Steps to reproduce the behavior:

  1. Add show Nova Vita (TVDB ID 399247)
  2. Post-process the above filename

Expected behavior I'm not sure how the filename processing algorithms work, but perhaps anything before the season/ep number should be considered part of the series name only.

Medusa (please complete the following information):

  • OS: linuxserver/medusa Docker container (Linux-5.11.0-43-generic-x86_64-with)
  • Branch: master
  • Commit: "Unknown"
  • Version: 0.5.22
  • Python version: 3.8.10 (default, May 6 2021, 06:30:44) [GCC 9.3.0]
  • Database version: 44.18

Debug logs (at least 50 lines):

2022-01-09 23:45:42 INFO     Thread_0 :: [] Post processing called with:
path: /downloads/tv
resource: None
2022-01-09 23:45:42 INFO     Thread_0 :: [] Processing path: /downloads/tv
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] No resource_name passed, using path [/downloads/tv] to process as a source folder
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Processing folder: /downloads/tv
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Post-processing files: ['Nova.Vita.S01E01.720p.WEBRip.x264-GalaxyTV.mkv', 'Nova.Vita.S01E02.720p.WEBRip.x264-GalaxyTV.mkv', 'Nova.Vita.S01E03.720p.WEBRip.x264-GalaxyTV.mkv', 'Nova.Vita.S01E04.720p.WEBRip.x264-GalaxyTV.mkv', 'Nova.Vita.S01E05.720p.WEBRip.x264-GalaxyTV.mkv', 'Nova.Vita.S01E06.720p.WEBRip.x264-GalaxyTV.mkv', 'Nova.Vita.S01E07.720p.WEBRip.x264-GalaxyTV.mkv', 'Nova.Vita.S01E08.720p.WEBRip.x264-GalaxyTV.mkv', 'Nova.Vita.S01E09.720p.WEBRip.x264-GalaxyTV.mkv', 'Nova.Vita.S01E10.720p.WEBRip.x264-GalaxyTV.mkv']
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Post-processing video files: ['Nova.Vita.S01E01.720p.WEBRip.x264-GalaxyTV.mkv', 'Nova.Vita.S01E02.720p.WEBRip.x264-GalaxyTV.mkv', 'Nova.Vita.S01E03.720p.WEBRip.x264-GalaxyTV.mkv', 'Nova.Vita.S01E04.720p.WEBRip.x264-GalaxyTV.mkv', 'Nova.Vita.S01E05.720p.WEBRip.x264-GalaxyTV.mkv', 'Nova.Vita.S01E06.720p.WEBRip.x264-GalaxyTV.mkv', 'Nova.Vita.S01E07.720p.WEBRip.x264-GalaxyTV.mkv', 'Nova.Vita.S01E08.720p.WEBRip.x264-GalaxyTV.mkv', 'Nova.Vita.S01E09.720p.WEBRip.x264-GalaxyTV.mkv', 'Nova.Vita.S01E10.720p.WEBRip.x264-GalaxyTV.mkv']
2022-01-09 23:45:42 INFO     Thread_0 :: [] Processing /downloads/tv/Nova.Vita.S01E01.720p.WEBRip.x264-GalaxyTV.mkv
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Analyzing name: Nova.Vita.S01E01.720p.WEBRip.x264-GalaxyTV.mkv
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Using guessit cache item for Nova.Vita.S01E01.720p.WEBRip.x264-GalaxyTV.mkv
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Using cache item for Nova.Vita.S01E01.720p.WEBRip.x264-GalaxyTV.mkv
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Scene exception lookup got series id 76119 from indexer 1, using that
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Unable to match Nova.Vita.S01E01.720p.WEBRip.x264-GalaxyTV.mkv to a series in your database. Parser result: title: Nova, other: ['PS Vita', 'Rip'], season: 1, episode: [1], screen_size: 720p, source: Web, video_codec: H.264, video_encoder: x264, release_group: GalaxyTV, container: mkv, type: episode, parsing_time: 0.00816488265991211, absolute_episode: [], quality: 720p WEB-DL, total_time: 0.013212442398071289
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Analyzing name: Nova.Vita.S01E01.720p.WEBRip.x264-GalaxyTV.mkv
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Using guessit cache item for Nova.Vita.S01E01.720p.WEBRip.x264-GalaxyTV.mkv
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Using cache item for Nova.Vita.S01E01.720p.WEBRip.x264-GalaxyTV.mkv
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Scene exception lookup got series id 76119 from indexer 1, using that
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Unable to match Nova.Vita.S01E01.720p.WEBRip.x264-GalaxyTV.mkv to a series in your database. Parser result: title: Nova, other: ['PS Vita', 'Rip'], season: 1, episode: [1], screen_size: 720p, source: Web, video_codec: H.264, video_encoder: x264, release_group: GalaxyTV, container: mkv, type: episode, parsing_time: 0.004194736480712891, absolute_episode: [], quality: 720p WEB-DL, total_time: 0.009215354919433594
2022-01-09 23:45:42 WARNING  Thread_0 :: [] Processing failed for /downloads/tv/Nova.Vita.S01E01.720p.WEBRip.x264-GalaxyTV.mkv: This show isn't in your list, you need to add it before post-processing an episode
2022-01-09 23:45:42 INFO     Thread_0 :: [] Processing /downloads/tv/Nova.Vita.S01E02.720p.WEBRip.x264-GalaxyTV.mkv
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Analyzing name: Nova.Vita.S01E02.720p.WEBRip.x264-GalaxyTV.mkv
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Using guessit cache item for Nova.Vita.S01E02.720p.WEBRip.x264-GalaxyTV.mkv
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Using cache item for Nova.Vita.S01E02.720p.WEBRip.x264-GalaxyTV.mkv
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Scene exception lookup got series id 76119 from indexer 1, using that
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Unable to match Nova.Vita.S01E02.720p.WEBRip.x264-GalaxyTV.mkv to a series in your database. Parser result: title: Nova, other: ['PS Vita', 'Rip'], season: 1, episode: [2], screen_size: 720p, source: Web, video_codec: H.264, video_encoder: x264, release_group: GalaxyTV, container: mkv, type: episode, parsing_time: 0.004248857498168945, absolute_episode: [], quality: 720p WEB-DL, total_time: 0.009028911590576172
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Analyzing name: Nova.Vita.S01E02.720p.WEBRip.x264-GalaxyTV.mkv
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Using guessit cache item for Nova.Vita.S01E02.720p.WEBRip.x264-GalaxyTV.mkv
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Using cache item for Nova.Vita.S01E02.720p.WEBRip.x264-GalaxyTV.mkv
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Scene exception lookup got series id 76119 from indexer 1, using that
2022-01-09 23:45:42 DEBUG    Thread_0 :: [] Unable to match Nova.Vita.S01E02.720p.WEBRip.x264-GalaxyTV.mkv to a series in your database. Parser result: title: Nova, other: ['PS Vita', 'Rip'], season: 1, episode: [2], screen_size: 720p, source: Web, video_codec: H.264, video_encoder: x264, release_group: GalaxyTV, container: mkv, type: episode, parsing_time: 0.0040700435638427734, absolute_episode: [], quality: 720p WEB-DL, total_time: 0.00885915756225586

Additional context Adding a scene exception for "Nova Vita" or "Nova.Vita" doesn't help.

phoenix83 avatar Jan 09 '22 13:01 phoenix83