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.75k stars 271 forks source link

Episodes not snatched from time to time #4948

Closed mattail closed 4 years ago

mattail commented 5 years ago

It happens from time to time (more often that I would like) that Medusa does not snatch episodes even if they are found.

I know that if I force a search from medusa UI then it will be processed as it should but I find my self too often (around 50% of the time) having to check if an episode has been released in the torrentsite and then check if Medusa has snatched the episode. This is why I'm creating this bug hoping to get to the bottom of it.

I'm thinking maybe it could be because of the required word "Nordic"? But again why is it working sometimes?

Below is a specific example where episode 7 of the show Castle Rock wasn't snatched/found by Medusa. I do have the BTW I'm running Medusa from Synology as docker.

To Reproduce I don't know how to reproduce it's periodically. Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Medusa (please complete the following information):

Logs:

``` 2018-08-23 15:30:47 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Matched release Castle.Rock.S01E07.NORDiC.1080p.WEB-DL.AAC2.0.H.264-DBRETAiL to a series in your database: Castle Rock 2018-08-23 15:30:47 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Parsed Castle.Rock.S01E07.NORDiC.1080p.WEB-DL.AAC2.0.H.264-DBRETAiL into title: Castle Rock, season: 1, episode: [7], episode_title: NORDiC, screen_size: 1080p, format: WEB-DL, audio_codec: AAC, audio_channels: 2.0, video_codec: h264, release_group: DBRETAiL, type: episode, parsing_time: 0.0281798839569, total_time: 0.0282979011536, absolute_episode: [], quality: 1080p WEB-DL 2018-08-23 15:30:47 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Added RSS item: Castle.Rock.S01E07.NORDiC.1080p.WEB-DL.AAC2.0.H.264-DBRETAiL to cache: danishbits with url https://danishbits.org/torrents.php/Castle.Rock.S01E07.NORDiC.1080p.WEB-DL.AAC2.0.H.264-DBRETAiL.torrent?action=download&authkey=a59428106ac929a6e51e46455d8c2a9f&torrent_pass=**********&id=1040894 2018-08-23 15:30:47 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Unable to match Hedy_West-Ballads_and_Songs_from_the_Appalachians-WEB-MP3-2011-MusicBits to a series in your database. Parser result: title: Hedy West-Ballads and Songs from the Appalachians, format: WEB-DL, audio_codec: MP3, year: 2011, episode_title: MusicBits, type: episode, parsing_time: 0.0148799419403, total_time: 0.042484998703, absolute_episode: [], quality: SDTV, episode: [], season: None 2018-08-23 15:30:47 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Unable to match Hedy_West-Ballads_and_Songs_from_the_Appalachians-WEB-FLAC-2011-MusicBits to a series in your database. Parser result: title: Hedy West-Ballads and Songs from the Appalachians, format: WEB-DL, audio_codec: FLAC, year: 2011, episode_title: MusicBits, type: episode, parsing_time: 0.0181829929352, total_time: 0.0448858737946, absolute_episode: [], quality: SDTV, episode: [], season: None 2018-08-23 15:30:48 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Matched release Castle.Rock.S01E07.NORDiC.720p.WEB-DL.AAC2.0.H.264-DBRETAiL to a series in your database: Castle Rock 2018-08-23 15:30:48 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Parsed Castle.Rock.S01E07.NORDiC.720p.WEB-DL.AAC2.0.H.264-DBRETAiL into title: Castle Rock, season: 1, episode: [7], episode_title: NORDiC, screen_size: 720p, format: WEB-DL, audio_codec: AAC, audio_channels: 2.0, video_codec: h264, release_group: DBRETAiL, type: episode, parsing_time: 0.0259900093079, total_time: 0.0261089801788, absolute_episode: [], quality: 720p WEB-DL 2018-08-23 15:30:48 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Added RSS item: Castle.Rock.S01E07.NORDiC.720p.WEB-DL.AAC2.0.H.264-DBRETAiL to cache: danishbits with url https://danishbits.org/torrents.php/Castle.Rock.S01E07.NORDiC.720p.WEB-DL.AAC2.0.H.264-DBRETAiL.torrent?action=download&authkey=a59428106ac929a6e51e46455d8c2a9f&torrent_pass=**********&id=1040891 ```

Additional context From the log above I can see that the wanted episode is found but it's not snatched.

018-08-23 15:30:47 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Matched release Castle.Rock.S01E07.NORDiC.1080p.WEB-DL.AAC2.0.H.264-DBRETAiL to a series in your database: Castle Rock

I then check ½ an hour later to check if the daily search snatched it but again nothing.

``` 2018-08-23 16:00:41 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [f5973b2] Seeing if we need anything from Castle Rock 2018-08-23 16:00:41 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [f5973b2] Searching for Castle Rock S01E07. Reason: Status is WANTED. Searching episode 2018-08-23 16:00:41 INFO SEARCHQUEUE-DAILY-SEARCH :: [f5973b2] Using daily search providers 2018-08-23 16:00:41 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Updating providers cache 2018-08-23 16:00:41 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Search mode: RSS 2018-08-23 16:00:45 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] GET URL: https://danishbits.org/couchpotato.php?search=.&latest=true&user=**********&passkey=********** [Status: 200] 2018-08-23 16:00:45 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] User-Agent: Medusa/0.2.8 (Linux; 3.10.102; 6c61f980-91f0-11e8-853f-02428b1e6216) 2018-08-23 16:00:45 INFO SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Removing cache entries older than 6 days from danishbits 2018-08-23 16:00:45 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Unable to match Third_Eye_Blind-Thanks_for_Everything-WEB-2018-ENTiTLED to a series in your database. Parser result: title: Third Eye Blind-Thanks for Everything, format: WEB-DL, year: 2018, episode_title: ENTiTLED, type: episode, parsing_time: 0.0170850753784, total_time: 0.0442411899567, absolute_episode: [], quality: SDTV, episode: [], season: None 2018-08-23 16:00:45 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Unable to match Night_Demon-Live_Darkness-WEB-2018-ENTiTLED to a series in your database. Parser result: title: Night Demon-Live Darkness, format: WEB-DL, year: 2018, episode_title: ENTiTLED, type: episode, parsing_time: 0.0134320259094, total_time: 0.047835111618, absolute_episode: [], quality: SDTV, episode: [], season: None 2018-08-23 16:00:45 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Unable to match Alice_In_Chains-Rainier_Fog-WEB-2018-ENTiTLED to a series in your database. Parser result: title: Alice In Chains-Rainier Fog, format: WEB-DL, year: 2018, episode_title: ENTiTLED, type: episode, parsing_time: 0.0133099555969, total_time: 0.0404689311981, absolute_episode: [], quality: SDTV, episode: [], season: None 2018-08-23 16:00:46 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Unable to match Basserne.2018.1066-Snipermeister.pdf to a series in your database. Parser result: title: Basserne, alias: Basserne 2018, year: 2018, season: 10, episode: [66], episode_title: Snipermeister pdf, mimetype: application/pdf, type: episode, parsing_time: 0.0197501182556, total_time: 0.0468220710754, absolute_episode: [], quality: Unknown 2018-08-23 16:00:46 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Unable to match Anders.And.2018.34-Snipermeister.pdf to a series in your database. Parser result: title: Anders And, alias: Anders And 2018, year: 2018, episode: [], absolute_episode: [34], episode_title: Snipermeister pdf, mimetype: application/pdf, type: episode, parsing_time: 0.0144839286804, total_time: 0.0500340461731, quality: Unknown, season: None 2018-08-23 16:00:46 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Unable to match The.Handmaids.Tale.S02E13.iNTERNAL.720p.HDTV.x264-TURBO to a series in your database. Parser result: title: The Handmaids Tale, season: 2, episode: [13], other: Internal, screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: TURBO, type: episode, parsing_time: 0.0219299793243, total_time: 0.0224678516388, absolute_episode: [], quality: 720p HDTV 2018-08-23 16:00:46 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Unable to match The.Handmaids.Tale.S02E13.iNTERNAL.HDTV.x264-TURBO to a series in your database. Parser result: title: The Handmaids Tale, season: 2, episode: [13], other: Internal, format: HDTV, video_codec: h264, video_encoder: x264, release_group: TURBO, type: episode, parsing_time: 0.0183520317078, total_time: 0.0189578533173, absolute_episode: [], quality: SDTV 2018-08-23 16:00:46 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Unable to match Supergirl.1984.720p.BluRay.x264-PSYCHD to a series in your database. Parser result: title: Supergirl, year: 1984, screen_size: 720p, format: BluRay, video_codec: h264, video_encoder: x264, release_group: PSYCHD, type: episode, parsing_time: 0.0239539146423, total_time: 0.0512690544128, absolute_episode: [], quality: 720p BluRay, episode: [], season: None 2018-08-23 16:00:46 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Unable to match Aktiv.Traening.2018.09-Snipermeister.pdf to a series in your database. Parser result: title: Aktiv Traening, alias: Aktiv Traening 2018, year: 2018, episode: [], absolute_episode: [9], episode_title: Snipermeister pdf, mimetype: application/pdf, type: episode, parsing_time: 0.015260219574, total_time: 0.0500869750977, quality: Unknown, season: None 2018-08-23 16:00:46 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Unable to match I.Form.2018.13-Snipermeister.pdf to a series in your database. Parser result: title: I Form, alias: I Form 2018, year: 2018, episode: [], absolute_episode: [13], episode_title: Snipermeister pdf, mimetype: application/pdf, type: episode, parsing_time: 0.0142869949341, total_time: 0.041188955307, quality: Unknown, season: None 2018-08-23 16:00:46 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Unable to match Illustreret.Videnskab.2018.13-Snipermeister.pdf to a series in your database. Parser result: title: Illustreret Videnskab, alias: Illustreret Videnskab 2018, year: 2018, episode: [], absolute_episode: [13], episode_title: Snipermeister pdf, mimetype: application/pdf, type: episode, parsing_time: 0.0182540416718, total_time: 0.0456359386444, quality: Unknown, season: None 2018-08-23 16:00:46 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Unable to match Oceans.8.2018.Custom.DKsubs.NTSC.DVDR-UNiTY to a series in your database. Parser result: title: Oceans, episode: [], absolute_episode: [8], episode_title: Custom DKsubs, other: NTSC, format: DVD, release_group: UNiTY, type: episode, parsing_time: 0.0146269798279, total_time: 0.0497050285339, quality: SD DVD, season: None 2018-08-23 16:00:46 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Unable to match Mr.Sunshine.2018.S01E11-E12.NORDiC.1080p.WEB-DL.DDP2.0.H.264-DBRETAiL to a series in your database. Parser result: title: Mr Sunshine, alias: Mr Sunshine 2018, year: 2018, season: 1, episode: [11, 12], episode_title: NORDiC, screen_size: 1080p, format: WEB-DL, audio_codec: EAC3, audio_channels: 2.0, video_codec: h264, release_group: DBRETAiL, type: episode, parsing_time: 0.0352509021759, total_time: 0.0673980712891, absolute_episode: [], quality: 1080p WEB-DL 2018-08-23 16:00:46 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Hit old cached items, not parsing any more for: danishbits 2018-08-23 16:00:46 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Danishbits] :: [f5973b2] Transaction with 78 queries executed ```
medariox commented 5 years ago

We've made a few improvements to that part of the code that will be available in the next release. I'd be great if you could see if that solves the issue before debugging this further.