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.79k stars 276 forks source link

Deleted shows reappear in list after a few hours #9922

Closed rikbon closed 3 years ago

rikbon commented 3 years ago

Describe the bug When I remove a show from the interface, the entire folder is deleted, but after a few hours it "magically" reappears and tries to snatch episodes.

To Reproduce Steps to reproduce the behavior:

  1. Go to a show
  2. Click on 'Remove'
  3. Check checkbox ' Check to delete files as well. IRREVERSIBLE'
  4. Click 'Yes'

Expected behavior The show should stay deleted and not be readded automatically.

Screenshots No screenshot.

Medusa (please complete the following information): Branch: master Commit: Unknown Version: 0.5.18 Database: 44.18 Python Version: 3.8.10 (default, May 6 2021, 06:30:44) [GCC 9.3.0] OS: Raspbian GNU/Linux 10 - Linux-5.10.60-v7l+-armv7l-with

Debug logs (at least 50 lines): General > Advanced Settings > Enable debug

SHOWQUEUE-REMOVE-SHOW :: 402047: Removing show The Dark: Forever Winter from Trakt watchlist 2021-10-05 10:53:04 INFO SHOWQUEUE-REMOVE-SHOW :: 402047: delete show folder /tv/The Dark Forever Winter 2021-10-05 10:53:04 INFO SHOWQUEUE-REMOVE-SHOW :: 402047: Attempt to delete show folder /tv/The Dark Forever Winter 2021-10-05 10:53:04 DEBUG SHOWQUEUE-REMOVE-SHOW :: Transaction with 5 queries executed 2021-10-05 10:53:03 INFO SHOWQUEUE-REMOVE-SHOW :: Removing 'The Dark: Forever Winter' from Trakt library 2021-10-05 10:53:02 INFO SHOWQUEUE-REMOVE-SHOW :: 402047: Removing The Dark: Forever Winter 2021-10-05 10:52:59 DEBUG APIv2-Thread-4 :: No XEM data for show ID 402047 on tvdb 2021-10-05 10:52:59 DEBUG APIv2-Thread-4 :: User-Agent: Medusa/0.5.18 (Linux; 5.10.60-v7l+; d85323f3-21d2-11ec-9408-0242ac110004) 2021-10-05 10:52:59 DEBUG APIv2-Thread-4 :: GET URL: http://thexem.de/map/havemap?origin=tvdb [Status: 200] 2021-10-05 10:52:57 DEBUG APIv2-Thread-4 :: Looking up XEM scene mapping for show ID 402047 on tvdb 2021-10-05 10:52:57 DEBUG APIv2-Thread-3 :: Broken providers already updated in the last hour 2021-10-05 10:50:03 DEBUG EPISODEUPDATER :: Finished updating network timezones 2021-10-05 10:50:02 DEBUG EPISODEUPDATER :: User-Agent: Medusa/0.5.18 (Linux; 5.10.60-v7l+; d85323f3-21d2-11ec-9408-0242ac110004) 2021-10-05 10:50:02 DEBUG EPISODEUPDATER :: GET URL: https://cdn.pymedusa.com/sb_network_timezones/network_timezones.txt [Status: 200] 2021-10-05 10:50:02 DEBUG EPISODEUPDATER :: Started updating network timezones 2021-10-05 10:50:02 DEBUG EPISODEUPDATER :: Starting new thread: EPISODEUPDATER 2021-10-05 10:46:48 DEBUG CHECKVERSION :: User-Agent: Medusa/0.5.18 (Linux; 5.10.60-v7l+; d85323f3-21d2-11ec-9408-0242ac110004) 2021-10-05 10:46:48 DEBUG CHECKVERSION :: GET URL: https://cdn.pymedusa.com/news/news.md [Status: 200] 2021-10-05 10:46:48 DEBUG CHECKVERSION :: User-Agent: Medusa/0.5.18 (Linux; 5.10.60-v7l+; d85323f3-21d2-11ec-9408-0242ac110004) 2021-10-05 10:46:48 DEBUG CHECKVERSION :: GET URL: https://cdn.pymedusa.com/news/news.md [Status: 200] 2021-10-05 10:46:48 DEBUG CHECKVERSION :: Checking GitHub for latest news. 2021-10-05 10:46:48 DEBUG CHECKVERSION :: Checking GitHub for latest news. 2021-10-05 10:46:46 DEBUG CHECKVERSION :: Starting new thread: CHECKVERSION 2021-10-05 10:46:46 DEBUG CHECKVERSION :: Starting new thread: CHECKVERSION 2021-10-05 10:43:47 DEBUG APIv2-Thread-1 :: Broken providers already updated in the last hour 2021-10-05 10:41:43 DEBUG SNATCHQUEUE-SNATCH-401630 :: Transaction with 1 queries executed 2021-10-05 10:41:42 INFO SNATCHQUEUE-SNATCH-401630 :: Adding NCIS: Hawai'i S01E01 to Trakt watchlist 2021-10-05 10:41:42 DEBUG SNATCHQUEUE-SNATCH-401630 :: 401630: Formatting pattern: %SN - %Sx01 - %EN - %QN -> NCIS Hawai'i - 1x01 - Pilot - 720p WEB-DL 2021-10-05 10:41:42 DEBUG SNATCHQUEUE-SNATCH-401630 :: Found codec for NCIS: Hawai'i Pilot 2021-10-05 10:41:42 DEBUG SNATCHQUEUE-SNATCH-401630 :: Checking if we should stop searching for a better quality for for episode ncis.hawaii.s01e01.720p.web.h264-plzproper[eztv.re] 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: Deluge: Response to POST request is {"result": null, "error": null, "id": 8} 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: With post data: {"method": "core.set_torrent_move_completed_path", "params": ["7510e268ca4182b7368a06d98eba27e22603a975", "/tv/"], "id": 8} 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: User-Agent: Medusa/0.5.18 (Linux; 5.10.60-v7l+; d85323f3-21d2-11ec-9408-0242ac110004) 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: POST URL: http://192.168.1.110:8112/json [Status: 200] 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: Deluge: Response to POST request is {"result": null, "error": null, "id": 7} 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: With post data: {"method": "core.set_torrent_move_completed", "params": ["7510e268ca4182b7368a06d98eba27e22603a975", true], "id": 7} 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: User-Agent: Medusa/0.5.18 (Linux; 5.10.60-v7l+; d85323f3-21d2-11ec-9408-0242ac110004) 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: POST URL: http://192.168.1.110:8112/json [Status: 200] 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: Deluge: Response to POST request is {"result": null, "error": null, "id": 6} 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: With post data: {"method": "core.set_torrent_stop_ratio", "params": ["7510e268ca4182b7368a06d98eba27e22603a975", 1.0], "id": 6} 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: User-Agent: Medusa/0.5.18 (Linux; 5.10.60-v7l+; d85323f3-21d2-11ec-9408-0242ac110004) 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: POST URL: http://192.168.1.110:8112/json [Status: 200] 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: Deluge: Response to POST request is {"result": null, "error": null, "id": 5} 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: With post data: {"method": "core.set_torrent_stop_at_ratio", "params": ["7510e268ca4182b7368a06d98eba27e22603a975", true], "id": 5} 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: User-Agent: Medusa/0.5.18 (Linux; 5.10.60-v7l+; d85323f3-21d2-11ec-9408-0242ac110004) 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: POST URL: http://192.168.1.110:8112/json [Status: 200] 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: Deluge: Response to POST request is {"result": "7510e268ca4182b7368a06d98eba27e22603a975", "error": null, "id": 2} 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: With post data: {"method": "core.add_torrent_magnet", "params": ["magnet:?xt=urn:btih:7510E268CA4182B7368A06D98EBA27E22603A975&dn=ncis hawaii s01e01 720p web h264-plzproper[eztv re]&tr=udp://tracker.coppersurfer.tk:6969/announce&tr=udp://tracker.leechers-paradise.org:6969/announce&tr=udp://tracker.zer0day.to:1337/announce&tr=udp://tracker.opentrackr.org:1337/announce&tr=http://tracker.opentrackr.org:1337/announce&tr=udp://p4p.arenabg.com:1337/announce&tr=http://p4p.arenabg.com:1337/announce&tr=udp://explodie.org:6969/announce&tr=udp://9.rarbg.com:2710/announce&tr=http://explodie.org:6969/announce&tr=http://tracker.dler.org:6969/announce&tr=udp://public.popcorn-tracker.org:6969/announce&tr=udp://tracker.internetwarriors.net:1337/announce&tr=udp://ipv4.tracker.harry.lu:80/announce&tr=http://ipv4.tracker.harry.lu:80/announce&tr=udp://mgtracker.org:2710/announce&tr=http://mgtracker.org:6969/announce&tr=udp://tracker.mg64.net:6969/announce&tr=http://tracker.mg64.net:6881/announce&tr=http://torrentsmd.com:8080/announce", {}], "id": 2} 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: User-Agent: Medusa/0.5.18 (Linux; 5.10.60-v7l+; d85323f3-21d2-11ec-9408-0242ac110004) 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: POST URL: http://192.168.1.110:8112/json [Status: 200] 2021-10-05 10:41:41 INFO SNATCHQUEUE-SNATCH-401630 :: Adding "magnet:?xt=urn:btih:7510E268CA4182B7368A06D98EBA27E22603A975&dn=ncis hawaii s01e01 720p web h264-plzproper[eztv re]&tr=udp://tracker.coppersurfer.tk:6969/announce&tr=udp://tracker.leechers-paradise.org:6969/announce&tr=udp://tracker.zer0day.to:1337/announce&tr=udp://tracker.opentrackr.org:1337/announce&tr=http://tracker.opentrackr.org:1337/announce&tr=udp://p4p.arenabg.com:1337/announce&tr=http://p4p.arenabg.com:1337/announce&tr=udp://explodie.org:6969/announce&tr=udp://9.rarbg.com:2710/announce&tr=http://explodie.org:6969/announce&tr=http://tracker.dler.org:6969/announce&tr=udp://public.popcorn-tracker.org:6969/announce&tr=udp://tracker.internetwarriors.net:1337/announce&tr=udp://ipv4.tracker.harry.lu:80/announce&tr=http://ipv4.tracker.harry.lu:80/announce&tr=udp://mgtracker.org:2710/announce&tr=http://mgtracker.org:6969/announce&tr=udp://tracker.mg64.net:6969/announce&tr=http://tracker.mg64.net:6881/announce&tr=http://torrentsmd.com:8080/announce" to Deluge 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: With post data: {"method": "web.connected", "params": [], "id": 10} 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: User-Agent: Medusa/0.5.18 (Linux; 5.10.60-v7l+; d85323f3-21d2-11ec-9408-0242ac110004) 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: POST URL: http://192.168.1.110:8112/json [Status: 200] 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: With post data: {"method": "auth.login", "params": ["**********"], "id": 1} 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: User-Agent: Medusa/0.5.18 (Linux; 5.10.60-v7l+; d85323f3-21d2-11ec-9408-0242ac110004) 2021-10-05 10:41:41 DEBUG SNATCHQUEUE-SNATCH-401630 :: POST URL: http://192.168.1.110:8112/json [Status: 200] 2021-10-05 10:41:41 INFO SNATCHQUEUE-SNATCH-401630 :: Downloading ncis.hawaii.s01e01.720p.web.h264-plzproper[eztv.re] with 58 seeders and 78 leechers and size 959.53 MB from LimeTorrents, through a SearchType.BACKLOG_SEARCH search 2021-10-05 10:41:41 INFO SNATCHQUEUE-SNATCH-401630 :: Beginning to snatch release: ncis.hawaii.s01e01.720p.web.h264-plzproper[eztv.re] 2021-10-05 10:41:40 INFO FORCEDSEARCHQUEUE-BACKLOG-401630 :: Downloading ncis.hawaii.s01e01.720p.web.h264-plzproper[eztv.re] with 58 seeders and 78 leechers and size 959.53 MB from LimeTorrents 2021-10-05 10:41:40 DEBUG FORCEDSEARCHQUEUE-BACKLOG-401630 :: No results to sort. 2021-10-05 10:41:40 DEBUG FORCEDSEARCHQUEUE-BACKLOG-401630 :: Combining single and multi-episode results 2021-10-05 10:41:40 INFO FORCEDSEARCHQUEUE-BACKLOG-401630 :: LimeTorrents :: Picked ncis.hawaii.s01e01.720p.web.h264-plzproper[eztv.re] as the best result. 2021-10-05 10:41:40 DEBUG FORCEDSEARCHQUEUE-BACKLOG-401630 :: LimeTorrents :: Computed result scores: Score Release 100.00 ncis.hawaii.s01e01.720p.web.h264-plzproper[eztv.re] 100.00 ncis.hawaii.s01e01.720p.web.h264-plzproper[eztv.re] 100.00 ncis.hawaii.s01e01.720p.web.h264-plzproper[eztv.re] 100.00 NCIS.Hawaii.S01E01.720p.WEB.H264 100.00 NCIS.Hawaii.S01E01.720p.WEB.H264 2021-10-05 10:41:40 DEBUG FORCEDSEARCHQUEUE-BACKLOG-401630 :: LimeTorrents :: Sorting the following results: ['ncis.hawaii.s01e01.720p.web.h264-plzproper[eztv.re]', 'ncis.hawaii.s01e01.720p.web.h264-plzproper[eztv.re]', 'ncis.hawaii.s01e01.720p.web.h264-plzproper[eztv.re]', 'NCIS.Hawaii.S01E01.720p.WEB.H264', 'NCIS.Hawaii.S01E01.720p.WEB.H264'] 2021-10-05 10:41:40 DEBUG FORCEDSEARCHQUEUE-BACKLOG-401630 :: LimeTorrents :: Found wanted results. 2021-10-05 10:41:40 INFO FORCEDSEARCHQUEUE-BACKLOG-401630 :: LimeTorrents :: Episodes [1] of season 1 are needed with this quality for NCIS: Hawai'i 2021-10-05 10:41:40 DEBUG FORCEDSEARCHQUEUE-BACKLOG-401630 :: LimeTorrents :: 401630: 'NCIS: Hawai'i' S01E01 status is: 'Wanted'. Accepting result with quality '720p WEB-DL'. Reason: Current status is 'WANTED'. Accepting result with quality '720p WEB-DL' 2021-10-05 10:41:40 DEBUG FORCEDSEARCHQUEUE-BACKLOG-401630 :: LimeTorrents :: 401630: Allowed, Preferred = [ 720p HDTV, 720p WEB-DL, 720p BluRay ] [ None ] Found = [ 720p WEB-DL ] 2021-10-05 10:41:40 INFO FORCEDSEARCHQUEUE-BACKLOG-401630 :: LimeTorrents :: Quality of NCIS.Hawaii.S01E01.720p.WEB.H264 is 720p WEB-DL 2021-10-05 10:41:39 INFO FORCEDSEARCHQUEUE-BACKLOG-401630 :: LimeTorrents :: Episodes [1] of season 1 are needed with this quality for NCIS: Hawai'i 2021-10-05 10:41:39 DEBUG FORCEDSEARCHQUEUE-BACKLOG-401630 :: LimeTorrents :: 401630: 'NCIS: Hawai'i' S01E01 status is: 'Wanted'. Accepting result with quality '720p WEB-DL'. Reason: Current status is 'WANTED'. Accepting result with quality '720p WEB-DL' 2021-10-05 10:41:39 DEBUG FORCEDSEARCHQUEUE-BACKLOG-401630 :: LimeTorrents :: 401630: Allowed, Preferred = [ 720p HDTV, 720p WEB-DL, 720p BluRay ] [ None ] Found = [ 720p WEB-DL ] 2021-10-05 10:41:39 INFO FORCEDSEARCHQUEUE-BACKLOG-401630 :: LimeTorrents :: Quality of NCIS.Hawaii.S01E01.720p.WEB.H264 is 720p WEB-DL 2021-10-05 10:41:39 DEBUG FORCEDSEARCHQUEUE-BACKLOG-401630 :: LimeTorrents :: NCIS.Hawaii.S01E01.1080p.WEB.H264 is an unwanted quality, rejecting it 2021-10-05 10:41:39 INFO FORCEDSEARCHQUEUE-BACKLOG-401630 :: LimeTorrents :: Quality of NCIS.Hawaii.S01E01.1080p.WEB.H264 is 1080p WEB-DL 2021-10-05 10:41:39 DEBUG FORCEDSEARCHQUEUE-BACKLOG-401630 :: LimeTorrents :: NCIS.Hawaii.S01E01.1080p.WEB.H264 is an unwanted quality, rejecting it

Additional context No additional context

p0psicles commented 3 years ago

Think you have trakt sync enabled. There are still episodes in your trakt watchlist and therefor it tries to re-add the show. At least that is my hypothesis

rikbon commented 3 years ago

Yep, disabled the integration and deleted shows... Let's see if it works