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.77k stars 275 forks source link

File with 'House' in episode title is being detected as the wrong show #11341

Open mb9023 opened 1 year ago

mb9023 commented 1 year ago

Having issues searching and postprocessing American Dad S20E04 - The Pleasanting at Smith House Debug logs seem to be matching to the show "House M.D." because 'House' is in the episode title name, it's not seeing it as American Dad. I downloaded this episode myself because Medusa's 'manual search' was not showing any 1080p results (they all have the episode title in the filename).

I run Medusa from the docker template by linuxserver/medusa

Medusa Info: Branch: master Commit: f46bfacf8763204fbde4f26a5916095371d494d1 Version: 1.0.16 Database: 44.19 Python Version: 3.10.11 (main, Apr 6 2023, 01:16:54) [GCC 12.2.1 20220924] SSL Version: OpenSSL 3.0.8 7 Feb 2023 OS: Linux-5.19.14-Unraid-x86_64-with Locale: en_US.UTF-8 Timezone: EDT

Debug logs- 2023-06-06 07:03:35 WARNING Thread :: [f46bfac] Missed file: /downloads/medusa/American.Dad.S20E04.The.Pleasanting.at.Smith.House.1080p.AMZN.WEBRip.DDP5.1.x264-NTb[TGx]/American.Dad!.S20E04.The.Pleasanting.at.Smith.House.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv: Processing failed: 2023-06-06 07:03:35 WARNING Thread :: [f46bfac] Problem(s) during processing, failed for the following files/folders: 2023-06-06 07:03:35 WARNING Thread :: [f46bfac] Processing failed for /downloads/medusa/American.Dad.S20E04.The.Pleasanting.at.Smith.House.1080p.AMZN.WEBRip.DDP5.1.x264-NTb[TGx]/American.Dad!.S20E04.The.Pleasanting.at.Smith.House.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv: 2023-06-06 07:03:35 INFO Thread :: [f46bfac] File has season 20, while the indexer is on season 8. The file may be incorrectly labeled or fake, aborting. 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] There is no existing file so there's no worries about replacing it 2023-06-06 07:03:35 INFO Thread :: [f46bfac] New size: 422.86 MB 2023-06-06 07:03:35 INFO Thread :: [f46bfac] New file: /downloads/medusa/American.Dad.S20E04.The.Pleasanting.at.Smith.House.1080p.AMZN.WEBRip.DDP5.1.x264-NTb[TGx]/American.Dad!.S20E04.The.Pleasanting.at.Smith.House.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] This episode is a priority download: False 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Proper: False 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] New quality: 1080p WEB-DL 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Current quality: N/A 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Resource name: None 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Info hash: None 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Manually snatched: False 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Snatch in history: False 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Quality of the episode we are processing: 1080p WEB-DL 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] The episode file has a quality in it, using that: 1080p WEB-DL 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Retrieving episode object for House S20E04 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Show information parsed from file name 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Parsed American.Dad!.S20E04.The.Pleasanting.at.Smith.House.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv into season: 20, episode: [4], episode_title: The Pleasanting at Smith, title: House, screen_size: 1080p, streaming_service: Amazon Prime, source: Web, audio_codec: Dolby Digital Plus, audio_channels: 5.1, video_codec: H.264, release_group: NTb, container: mkv, type: episode, parsing_time: 0.027241945266723633, absolute_episode: [], quality: 1080p WEB-DL, total_time: 0.02824687957763672 and added to cache 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Matched release American.Dad!.S20E04.The.Pleasanting.at.Smith.House.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv to a series in your database: House using guessit title: House 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] No mapping found, returning passed season and episode S20E04 for show House 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] New guessit parse for item American.Dad!.S20E04.The.Pleasanting.at.Smith.House.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Trying guessit cache for item American.Dad!.S20E04.The.Pleasanting.at.Smith.House.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Analyzing name: American.Dad!.S20E04.The.Pleasanting.at.Smith.House.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv 2023-06-06 07:03:35 INFO Thread :: [f46bfac] Processing /downloads/medusa/American.Dad.S20E04.The.Pleasanting.at.Smith.House.1080p.AMZN.WEBRip.DDP5.1.x264-NTb[TGx]/American.Dad!.S20E04.The.Pleasanting.at.Smith.House.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Found unwanted files: ['NEW upcoming releases by Xclusive.txt', '[TGx]Downloaded from torrentgalaxy.to .txt'] 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Post-processing video files: ['American.Dad!.S20E04.The.Pleasanting.at.Smith.House.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv'] 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Post-processing files: ['American.Dad!.S20E04.The.Pleasanting.at.Smith.House.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv', 'NEW upcoming releases by Xclusive.txt', '[TGx]Downloaded from torrentgalaxy.to .txt'] 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Processing folder: /downloads/medusa/American.Dad.S20E04.The.Pleasanting.at.Smith.House.1080p.AMZN.WEBRip.DDP5.1.x264-NTb[TGx] 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] No resource_name passed, using path [/downloads/medusa/American.Dad.S20E04.The.Pleasanting.at.Smith.House.1080p.AMZN.WEBRip.DDP5.1.x264-NTb[TGx]] to process as a source folder 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Skipping already processed file: [SubsPlease] Kimetsu no Yaiba - Katanakaji no Sato-hen - 09 (1080p) [AB915CBF].mkv 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] You're trying to post-process an automatically searched file that has already been processed, skipping: [SubsPlease] Kimetsu no Yaiba - Katanakaji no Sato-hen - 09 (1080p) [AB915CBF].mkv 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Skipping already processed file: [SubsPlease] Kimetsu no Yaiba - Katanakaji no Sato-hen - 06 (1080p) [2FF03924].mkv 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] You're trying to post-process an automatically searched file that has already been processed, skipping: [SubsPlease] Kimetsu no Yaiba - Katanakaji no Sato-hen - 06 (1080p) [2FF03924].mkv 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Skipping already processed file: [SubsPlease] Kimetsu no Yaiba - Katanakaji no Sato-hen - 05 (1080p) [A1B955B5].mkv 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] You're trying to post-process an automatically searched file that has already been processed, skipping: [SubsPlease] Kimetsu no Yaiba - Katanakaji no Sato-hen - 05 (1080p) [A1B955B5].mkv 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Skipping already processed file: [SubsPlease] Kimetsu no Yaiba - Katanakaji no Sato-hen - 04 (1080p) [57D14100].mkv 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] You're trying to post-process an automatically searched file that has already been processed, skipping: [SubsPlease] Kimetsu no Yaiba - Katanakaji no Sato-hen - 04 (1080p) [57D14100].mkv 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Post-processing video files: ['[SubsPlease] Kimetsu no Yaiba - Katanakaji no Sato-hen - 04 (1080p) [57D14100].mkv', '[SubsPlease] Kimetsu no Yaiba - Katanakaji no Sato-hen - 05 (1080p) [A1B955B5].mkv', '[SubsPlease] Kimetsu no Yaiba - Katanakaji no Sato-hen - 06 (1080p) [2FF03924].mkv', '[SubsPlease] Kimetsu no Yaiba - Katanakaji no Sato-hen - 09 (1080p) [AB915CBF].mkv'] 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Post-processing files: ['[SubsPlease] Kimetsu no Yaiba - Katanakaji no Sato-hen - 04 (1080p) [57D14100].mkv', '[SubsPlease] Kimetsu no Yaiba - Katanakaji no Sato-hen - 05 (1080p) [A1B955B5].mkv', '[SubsPlease] Kimetsu no Yaiba - Katanakaji no Sato-hen - 06 (1080p) [2FF03924].mkv', '[SubsPlease] Kimetsu no Yaiba - Katanakaji no Sato-hen - 09 (1080p) [AB915CBF].mkv'] 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] Processing folder: /downloads/medusa 2023-06-06 07:03:35 DEBUG Thread :: [f46bfac] No resource_name passed, using path [/downloads/medusa] to process as a source folder 2023-06-06 07:03:35 INFO Thread :: [f46bfac] Processing path: /downloads/medusa 2023-06-06 07:03:35 INFO Thread :: [f46bfac] Post processing called with: path: /downloads/medusa

mb9023 commented 9 months ago

This is happening still with a newer episode of American Dad that also has the word 'house' in the episode title. Manual search would not find episodes so I had to download it myself and it also does not process.

Branch: master Commit: [f46bfacf8763204fbde4f26a5916095371d494d1] Version: [1.0.18] Database: 44.19

Processing path: /downloads/medusa No resource_name passed, using path [/downloads/medusa] to process as a source folder Processing folder: /downloads/medusa Post-processing files: ['American.Dad!.S20E16.A.New.Era.for.the.Smith.House.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb[eztv.re].mkv', 'American.Dad!.S20E18.Footprints.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.EZTV.mkv'] Post-processing video files: ['American.Dad!.S20E16.A.New.Era.for.the.Smith.House.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb[eztv.re].mkv', 'American.Dad!.S20E18.Footprints.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.EZTV.mkv'] Processing /downloads/medusa/American.Dad!.S20E16.A.New.Era.for.the.Smith.House.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb[eztv.re].mkv Show information parsed from file name Retrieving episode object for House S20E16

Rwarren873 commented 8 months ago

For what it's worth, I have had this happen with any file that has "house" in the filename. I didn't think of capturing logs or coming here to post.

skalvaro commented 7 months ago

Branch: master Commit: c5a1e37bbaaebd49dd57ce5adf4e92c308fa6de3 Version: 1.0.19 Database: 44.19

Checking with config/postProcessing on the Guessit tab the 'Enriched parsed result' is incorrect while the Guessit result is correct.

zatricky commented 1 month ago

In case it helps, a workaround if it gets the correct show name from the folder is to rename the file to just 'S01E01.mkv' then the full path including the folder will be 'Show.Name/S01E01.mkv' Allow (or manually run) Post-processing In the destination path you could rename it again - but you'd have to "Rescan files" in Medusa to make sure it picks up the files again.

mb9023 commented 1 month ago

I ended up just removing 'House M.D.' from my shows list.