pymedusa / Medusa

Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.
https://pymedusa.com
GNU General Public License v3.0
1.8k stars 276 forks source link

Episode number not parsed correctly #8965

Closed lcdt22890158 closed 3 years ago

lcdt22890158 commented 3 years ago

Describe the bug The file "[EMBER] Re Zero kara Hajimeru Isekai Seikatsu S2 - 14.mkv" gets parsed as S01E14.

To Reproduce

  1. Add Re:Zero as a show.
  2. Enable "Anime" for the show.
  3. Add "EMBER" to the release group whitelist.
  4. Set S02E14 as "wanted".
  5. S02E14 will be snatched and start downloading.
  6. After the download completes, Medusa's postprocessor treats the episode as S01E14. S02E14 remains as "Snatched".

Expected behavior The parser should recognise the file as S02E14.

Medusa (please complete the following information):

Debug logs (at least 50 lines):

2021-01-07 21:43:15 WARNING POSTPROCESSOR :: [1ed3156] Processing failed for /media/complete/[EMBER] Re Zero kara Hajimeru Isekai Seikatsu S2 - 14.mkv: File exists. Marking it unsafe to replace. Reason: New quality is equal to current Allowed. Ignoring quality
2021-01-07 21:43:15 INFO    POSTPROCESSOR :: [1ed3156] New file: /media/complete/[EMBER] Re Zero kara Hajimeru Isekai Seikatsu S2 - 14.mkv
2021-01-07 21:43:15 INFO    POSTPROCESSOR :: [1ed3156] Old file: /media/TV/ReZERO -Starting Life in Another World-/Season 01/[DB]Re Zero kara Hajimeru Isekai Seikatsu_-_14_(Dual Audio_10bit_BD1080p_x265).mkv
2021-01-07 21:43:15 DEBUG   POSTPROCESSOR :: [1ed3156] Retrieving episode object for Re:ZERO -Starting Life in Another World- S01E14
2021-01-07 21:43:15 DEBUG   POSTPROCESSOR :: [1ed3156] Using cached parse result for [EMBER] Re Zero kara Hajimeru Isekai Seikatsu S2 - 14.mkv
2021-01-07 21:43:15 DEBUG   POSTPROCESSOR :: [1ed3156] Analyzing name: [EMBER] Re Zero kara Hajimeru Isekai Seikatsu S2 - 14.mkv
2021-01-07 21:43:15 DEBUG   POSTPROCESSOR :: [1ed3156] Parsed [EMBER] Re Zero kara Hajimeru Isekai Seikatsu S2 - 14.mkv into release_group: EMBER, title: Re Zero kara Hajimeru Isekai Seikatsu S2, absolute_episode: [14], episode: [14], container: mkv, type: episode, parsing_time: 0.03469729423522949, season: 1, quality: Unknown, total_time: 0.036136627197265625
2021-01-07 21:43:15 DEBUG   POSTPROCESSOR :: [1ed3156] Matched release [EMBER] Re Zero kara Hajimeru Isekai Seikatsu S2 - 14.mkv to a series in your database: Re:ZERO -Starting Life in Another World-
2021-01-07 21:43:15 DEBUG   POSTPROCESSOR :: [1ed3156] Anime series Re:ZERO -Starting Life in Another World- using indexer numbering #14: S01E14
2021-01-07 21:43:15 DEBUG   POSTPROCESSOR :: [1ed3156] 305089: Found season and episode which is Re:ZERO -Starting Life in Another World- S01E14
2021-01-07 21:43:15 DEBUG   POSTPROCESSOR :: [1ed3156] 305089: Season and episode lookup for Re:ZERO -Starting Life in Another World- using absolute number 14
2021-01-07 21:43:15 DEBUG   POSTPROCESSOR :: [1ed3156] Series Re:ZERO -Starting Life in Another World- is anime
2021-01-07 21:43:15 DEBUG   POSTPROCESSOR :: [1ed3156] Analyzing name: [EMBER] Re Zero kara Hajimeru Isekai Seikatsu S2 - 14.mkv
2021-01-07 21:43:15 INFO    POSTPROCESSOR :: [1ed3156] Processing /media/complete/[EMBER] Re Zero kara Hajimeru Isekai Seikatsu S2 - 14.mkv
p0psicles commented 3 years ago

Add scene exception Re Zero kara Hajimeru Isekai Seikatsu S2 as a season 2 exception