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 276 forks source link

Unable to Add Show #10895

Closed jpowers40828 closed 2 years ago

jpowers40828 commented 2 years ago

Describe the bug I am trying to add the show "Atlantic: A Year in the Wild". If I create the directory and use Add Existing Show, I receive the following log items while adding the show using the index TVDBv2:

2022-08-23 21:42:20 INFO     SHOWQUEUE-ADD :: [400903a] Finished processing 0 scene exceptions.
2022-08-23 21:42:20 INFO     SHOWQUEUE-ADD :: [400903a] Updating exception_cache and exception_season_cache
2022-08-23 21:42:20 WARNING  SHOWQUEUE-ADD :: [400903a] Error getting external key tvdb, error: ForbiddenException(<Response [403]>)
2022-08-23 21:42:19 INFO     SHOWQUEUE-ADD :: [400903a] Starting to add show by show_dir: O:\TV\Atlantic A Year in the Wild (2020)
2022-08-23 21:42:10 WARNING  APIv2-Thread_62 :: [400903a] Empty <id> or <tvdbid> field in NFO, unable to find a ID
2022-08-23 21:42:10 WARNING  APIv2-Thread_62 :: [400903a] Empty <id> or <tvdbid> field in NFO, unable to find a ID

I then deleted the directory and tried Add Show using the index TVDBv2. The home screen finishes loading but there is no folder created or show added. The following is from the log:

2022-08-23 21:46:13 INFO     SHOWQUEUE-ADD :: [400903a] Finished processing 0 scene exceptions.
2022-08-23 21:46:13 INFO     SHOWQUEUE-ADD :: [400903a] Updating exception_cache and exception_season_cache
2022-08-23 21:46:13 WARNING  SHOWQUEUE-ADD :: [400903a] Error getting external key tvdb, error: ForbiddenException(<Response [403]>)
2022-08-23 21:46:12 INFO     SHOWQUEUE-ADD :: [400903a] Starting to add show by Indexer Id: 388286

This is the log when I search all indexers and choose TMDB.

2022-08-23 21:50:12 INFO     SHOWQUEUE-ADD :: [400903a] Finished processing 0 scene exceptions.
2022-08-23 21:50:12 INFO     SHOWQUEUE-ADD :: [400903a] Updating exception_cache and exception_season_cache
2022-08-23 21:50:12 WARNING  SHOWQUEUE-ADD :: [400903a] Error getting external key tmdb, error: ForbiddenException(<Response [403]>)
2022-08-23 21:50:11 INFO     SHOWQUEUE-ADD :: [400903a] Starting to add show by Indexer Id: 111102
2022-08-23 21:50:07 INFO     APIv2-Thread_31 :: [400903a] Error searching for show. term(s): ['atlantic: a year in the wild'] indexer: imdb error: Could not get any results searching for atlantic: a year in the wild using indexer Imdb. Cause: AttributeError("'NoneType' object has no attribute 'groups'")

There were only the two indexers.

To Reproduce Steps to reproduce the behavior:

  1. Go to Shows->Add Shows
  2. Click on Add New Show
  3. Type "Atlantic: A Year in the Wild"
  4. Click Search
  5. Click Add Show
  6. See error

Expected behavior The show to be added to the database and the appropriate nfo file created and metadata downloaded.

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

Medusa (please complete the following information):

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

``` 2022-08-23 21:51:13 INFO APIv2-Thread_67 :: [400903a] Error searching for show. term(s): ['atlantic: a year in the wild'] indexer: imdb error: Could not get any results searching for atlantic: a year in the wild using indexer Imdb. Cause: AttributeError("'NoneType' object has no attribute 'groups'") 2022-08-23 21:51:13 DEBUG APIv2-Thread_67 :: [400903a] User-Agent: IMDb/8.3.1 (iPhone9,4; iOS 11.2.1) 2022-08-23 21:51:13 DEBUG APIv2-Thread_67 :: [400903a] GET URL: https://v2.sg.media-imdb.com/suggests/a/atlantic_a_year_in_the_wild.json [Status: 200] 2022-08-23 21:51:13 DEBUG APIv2-Thread_67 :: [400903a] Searching for show atlantic: a year in the wild 2022-08-23 21:51:13 DEBUG APIv2-Thread_67 :: [400903a] Searching for show with search term(s): ['atlantic: a year in the wild'] on indexer: imdb 2022-08-23 21:51:13 DEBUG APIv2-Thread_67 :: [400903a] Using custom UI: 2022-08-23 21:51:13 DEBUG APIv2-Thread_67 :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:51:13 DEBUG APIv2-Thread_67 :: [400903a] GET URL: https://api.themoviedb.org/3/search/tv?query=atlantic%3A+a+year+in+the+wild&language=en&page=1&api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-08-23 21:51:13 DEBUG APIv2-Thread_67 :: [400903a] Searching for show: atlantic: a year in the wild 2022-08-23 21:51:13 DEBUG APIv2-Thread_67 :: [400903a] Searching for show with search term(s): ['atlantic: a year in the wild'] on indexer: tmdb 2022-08-23 21:51:13 DEBUG APIv2-Thread_67 :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:51:13 DEBUG APIv2-Thread_67 :: [400903a] GET URL: https://api.themoviedb.org/3/configuration?api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-08-23 21:51:13 DEBUG APIv2-Thread_67 :: [400903a] Using custom UI: 2022-08-23 21:51:13 DEBUG APIv2-Thread_67 :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:51:13 DEBUG APIv2-Thread_67 :: [400903a] GET URL: http://api.tvmaze.com/search/shows?q=atlantic%3A%20a%20year%20in%20the%20wild [Status: 200] 2022-08-23 21:51:12 DEBUG APIv2-Thread_67 :: [400903a] Searching for show atlantic: a year in the wild 2022-08-23 21:51:12 DEBUG APIv2-Thread_67 :: [400903a] Searching for show with search term(s): ['atlantic: a year in the wild'] on indexer: tvmaze 2022-08-23 21:51:12 DEBUG APIv2-Thread_67 :: [400903a] Using custom UI: 2022-08-23 21:51:12 DEBUG APIv2-Thread_67 :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:51:12 DEBUG APIv2-Thread_67 :: [400903a] GET URL: https://api.thetvdb.com/search/series?name=atlantic%3A+a+year+in+the+wild [Status: 200] 2022-08-23 21:51:12 DEBUG APIv2-Thread_67 :: [400903a] Searching for show: atlantic: a year in the wild 2022-08-23 21:51:12 DEBUG APIv2-Thread_67 :: [400903a] Searching for show with search term(s): ['atlantic: a year in the wild'] on indexer: tvdb 2022-08-23 21:50:12 DEBUG SHOWQUEUE-ADD :: [400903a] Generating default search template for show Atlantic: A Year in the Wild, creating template %SN S%0SE%0E, title Atlantic: A Year in the Wild, season -1 2022-08-23 21:50:12 INFO SHOWQUEUE-ADD :: [400903a] Finished processing 0 scene exceptions. 2022-08-23 21:50:12 INFO SHOWQUEUE-ADD :: [400903a] Updating exception_cache and exception_season_cache 2022-08-23 21:50:12 DEBUG SHOWQUEUE-ADD :: [400903a] Transaction with 1 queries executed 2022-08-23 21:50:12 DEBUG SHOWQUEUE-ADD :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:50:12 DEBUG SHOWQUEUE-ADD :: [400903a] GET URL: https://api.themoviedb.org/3/configuration?api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-08-23 21:50:12 WARNING SHOWQUEUE-ADD :: [400903a] Error getting external key tmdb, error: ForbiddenException() 2022-08-23 21:50:11 DEBUG SHOWQUEUE-ADD :: [400903a] Looking for externals using Trakt and tmdb id 111102 2022-08-23 21:50:11 DEBUG SHOWQUEUE-ADD :: [400903a] Trying other indexer: TVmaze get_id_by_external 2022-08-23 21:50:11 DEBUG SHOWQUEUE-ADD :: [400903a] 111102: Loading show info from TMDB 2022-08-23 21:50:11 DEBUG SHOWQUEUE-ADD :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:50:11 DEBUG SHOWQUEUE-ADD :: [400903a] GET URL: https://api.themoviedb.org/3/tv/111102/season/1?language=en&api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-08-23 21:50:11 DEBUG SHOWQUEUE-ADD :: [400903a] Getting all episodes of 111102 2022-08-23 21:50:11 DEBUG SHOWQUEUE-ADD :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:50:11 DEBUG SHOWQUEUE-ADD :: [400903a] GET URL: https://api.themoviedb.org/3/tv/111102?language=en&append_to_response=content_ratings%2Cexternal_ids&api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-08-23 21:50:11 DEBUG SHOWQUEUE-ADD :: [400903a] Getting all show data for 111102 2022-08-23 21:50:11 DEBUG SHOWQUEUE-ADD :: [400903a] Getting all series data for 111102 2022-08-23 21:50:11 DEBUG SHOWQUEUE-ADD :: [400903a] Configured language en override show language of en 2022-08-23 21:50:11 DEBUG SHOWQUEUE-ADD :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:50:11 DEBUG SHOWQUEUE-ADD :: [400903a] GET URL: https://api.themoviedb.org/3/configuration?api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-08-23 21:50:11 DEBUG SHOWQUEUE-ADD :: [400903a] TMDB: {'language': 'en', 'use_zip': True, 'session': , 'cache': 'C:\\Medusa\\Data\\cache\\indexers\\TMDB'} 2022-08-23 21:50:11 DEBUG SHOWQUEUE-ADD :: [400903a] 111102: Unable to find the show in the database 2022-08-23 21:50:11 DEBUG SHOWQUEUE-ADD :: [400903a] 111102: Loading show info from database 2022-08-23 21:50:11 INFO SHOWQUEUE-ADD :: [400903a] Starting to add show by Indexer Id: 111102 2022-08-23 21:50:07 INFO APIv2-Thread_31 :: [400903a] Error searching for show. term(s): ['atlantic: a year in the wild'] indexer: imdb error: Could not get any results searching for atlantic: a year in the wild using indexer Imdb. Cause: AttributeError("'NoneType' object has no attribute 'groups'") 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] User-Agent: IMDb/8.3.1 (iPhone9,4; iOS 11.2.1) 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] GET URL: https://v2.sg.media-imdb.com/suggests/a/atlantic_a_year_in_the_wild.json [Status: 200] 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] Searching for show atlantic: a year in the wild 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] Searching for show with search term(s): ['atlantic: a year in the wild'] on indexer: imdb 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] Using custom UI: 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] GET URL: https://api.themoviedb.org/3/search/tv?query=atlantic%3A+a+year+in+the+wild&language=en&page=1&api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] Searching for show: atlantic: a year in the wild 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] Searching for show with search term(s): ['atlantic: a year in the wild'] on indexer: tmdb 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] GET URL: https://api.themoviedb.org/3/configuration?api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] Using custom UI: 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] GET URL: http://api.tvmaze.com/search/shows?q=atlantic%3A%20a%20year%20in%20the%20wild [Status: 200] 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] Searching for show atlantic: a year in the wild 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] Searching for show with search term(s): ['atlantic: a year in the wild'] on indexer: tvmaze 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] Using custom UI: 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] GET URL: https://api.thetvdb.com/search/series?name=atlantic%3A+a+year+in+the+wild [Status: 200] 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] Searching for show: atlantic: a year in the wild 2022-08-23 21:50:07 DEBUG APIv2-Thread_31 :: [400903a] Searching for show with search term(s): ['atlantic: a year in the wild'] on indexer: tvdb 2022-08-23 21:49:18 DEBUG SHOWQUEUE-ADD :: [400903a] Generating default search template for show Atlantic: A Year in the Wild, creating template %SN S%0SE%0E, title Atlantic: A Year in the Wild, season -1 2022-08-23 21:49:18 INFO SHOWQUEUE-ADD :: [400903a] Finished processing 0 scene exceptions. 2022-08-23 21:49:18 INFO SHOWQUEUE-ADD :: [400903a] Updating exception_cache and exception_season_cache 2022-08-23 21:49:18 DEBUG SHOWQUEUE-ADD :: [400903a] Transaction with 1 queries executed 2022-08-23 21:49:18 DEBUG SHOWQUEUE-ADD :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:49:18 DEBUG SHOWQUEUE-ADD :: [400903a] GET URL: https://api.themoviedb.org/3/configuration?api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-08-23 21:49:18 WARNING SHOWQUEUE-ADD :: [400903a] Error getting external key tmdb, error: ForbiddenException() 2022-08-23 21:49:17 DEBUG SHOWQUEUE-ADD :: [400903a] Looking for externals using Trakt and tmdb id 111102 2022-08-23 21:49:17 DEBUG SHOWQUEUE-ADD :: [400903a] Trying other indexer: TVmaze get_id_by_external 2022-08-23 21:49:17 DEBUG SHOWQUEUE-ADD :: [400903a] 111102: Loading show info from TMDB 2022-08-23 21:49:17 DEBUG SHOWQUEUE-ADD :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:49:17 DEBUG SHOWQUEUE-ADD :: [400903a] GET URL: https://api.themoviedb.org/3/tv/111102/season/1?language=en&api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-08-23 21:49:17 DEBUG SHOWQUEUE-ADD :: [400903a] Getting all episodes of 111102 2022-08-23 21:49:17 DEBUG SHOWQUEUE-ADD :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:49:17 DEBUG SHOWQUEUE-ADD :: [400903a] GET URL: https://api.themoviedb.org/3/tv/111102?language=en&append_to_response=content_ratings%2Cexternal_ids&api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-08-23 21:49:17 DEBUG SHOWQUEUE-ADD :: [400903a] Getting all show data for 111102 2022-08-23 21:49:17 DEBUG SHOWQUEUE-ADD :: [400903a] Getting all series data for 111102 2022-08-23 21:49:17 DEBUG SHOWQUEUE-ADD :: [400903a] Configured language en override show language of en 2022-08-23 21:49:17 DEBUG SHOWQUEUE-ADD :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:49:17 DEBUG SHOWQUEUE-ADD :: [400903a] GET URL: https://api.themoviedb.org/3/configuration?api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-08-23 21:49:17 DEBUG SHOWQUEUE-ADD :: [400903a] TMDB: {'language': 'en', 'use_zip': True, 'session': , 'cache': 'C:\\Medusa\\Data\\cache\\indexers\\TMDB'} 2022-08-23 21:49:17 DEBUG SHOWQUEUE-ADD :: [400903a] 111102: Unable to find the show in the database 2022-08-23 21:49:17 DEBUG SHOWQUEUE-ADD :: [400903a] 111102: Loading show info from database 2022-08-23 21:49:17 INFO SHOWQUEUE-ADD :: [400903a] Starting to add show by Indexer Id: 111102 2022-08-23 21:49:12 INFO APIv2-Thread_111 :: [400903a] Error searching for show. term(s): ['atlantic: a year in the wild'] indexer: imdb error: Could not get any results searching for atlantic: a year in the wild using indexer Imdb. Cause: AttributeError("'NoneType' object has no attribute 'groups'") 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] User-Agent: IMDb/8.3.1 (iPhone9,4; iOS 11.2.1) 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] GET URL: https://v2.sg.media-imdb.com/suggests/a/atlantic_a_year_in_the_wild.json [Status: 200] 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] Searching for show atlantic: a year in the wild 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] Searching for show with search term(s): ['atlantic: a year in the wild'] on indexer: imdb 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] Using custom UI: 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] GET URL: https://api.themoviedb.org/3/search/tv?query=atlantic%3A+a+year+in+the+wild&language=en&page=1&api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] Searching for show: atlantic: a year in the wild 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] Searching for show with search term(s): ['atlantic: a year in the wild'] on indexer: tmdb 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] GET URL: https://api.themoviedb.org/3/configuration?api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] Using custom UI: 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] GET URL: http://api.tvmaze.com/search/shows?q=atlantic%3A%20a%20year%20in%20the%20wild [Status: 200] 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] Searching for show atlantic: a year in the wild 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] Searching for show with search term(s): ['atlantic: a year in the wild'] on indexer: tvmaze 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] Using custom UI: 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] GET URL: https://api.thetvdb.com/search/series?name=atlantic%3A+a+year+in+the+wild [Status: 200] 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] Searching for show: atlantic: a year in the wild 2022-08-23 21:49:12 DEBUG APIv2-Thread_111 :: [400903a] Searching for show with search term(s): ['atlantic: a year in the wild'] on indexer: tvdb 2022-08-23 21:46:13 DEBUG SHOWQUEUE-ADD :: [400903a] Generating default search template for show Atlantic: A Year in the Wild, creating template %SN S%0SE%0E, title Atlantic: A Year in the Wild, season -1 2022-08-23 21:46:13 INFO SHOWQUEUE-ADD :: [400903a] Finished processing 0 scene exceptions. 2022-08-23 21:46:13 INFO SHOWQUEUE-ADD :: [400903a] Updating exception_cache and exception_season_cache 2022-08-23 21:46:13 DEBUG SHOWQUEUE-ADD :: [400903a] Transaction with 1 queries executed 2022-08-23 21:46:13 WARNING SHOWQUEUE-ADD :: [400903a] Error getting external key tvdb, error: ForbiddenException() 2022-08-23 21:46:13 DEBUG SHOWQUEUE-ADD :: [400903a] Looking for externals using Trakt and tvdb id 388286 2022-08-23 21:46:13 DEBUG SHOWQUEUE-ADD :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:46:13 DEBUG SHOWQUEUE-ADD :: [400903a] GET URL: https://api.themoviedb.org/3/find/388286?external_source=tvdb_id&api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-08-23 21:46:13 DEBUG SHOWQUEUE-ADD :: [400903a] Trying other indexer: TMDB get_id_by_external 2022-08-23 21:46:13 DEBUG SHOWQUEUE-ADD :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:46:13 DEBUG SHOWQUEUE-ADD :: [400903a] GET URL: https://api.themoviedb.org/3/configuration?api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-08-23 21:46:13 DEBUG SHOWQUEUE-ADD :: [400903a] Could not get tvmaze externals using external key tvdb_id and id 388286 2022-08-23 21:46:13 DEBUG SHOWQUEUE-ADD :: [400903a] The response returned a non-200 response while requesting url http://api.tvmaze.com/lookup/shows?thetvdb=388286 Error: HTTPError('404 Client Error: Not Found for url: http://api.tvmaze.com/lookup/shows?thetvdb=388286') 2022-08-23 21:46:13 DEBUG SHOWQUEUE-ADD :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:46:13 DEBUG SHOWQUEUE-ADD :: [400903a] GET URL: http://api.tvmaze.com/lookup/shows?thetvdb=388286 [Status: 404] 2022-08-23 21:46:12 DEBUG SHOWQUEUE-ADD :: [400903a] Trying other indexer: TVmaze get_id_by_external 2022-08-23 21:46:12 DEBUG SHOWQUEUE-ADD :: [400903a] 388286: Loading show info from TVDBv2 2022-08-23 21:46:12 DEBUG SHOWQUEUE-ADD :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:46:12 DEBUG SHOWQUEUE-ADD :: [400903a] GET URL: https://api.thetvdb.com/series/388286/episodes/query?page=1 [Status: 200] 2022-08-23 21:46:12 DEBUG SHOWQUEUE-ADD :: [400903a] Getting all episodes of 388286 2022-08-23 21:46:12 DEBUG SHOWQUEUE-ADD :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:46:12 DEBUG SHOWQUEUE-ADD :: [400903a] GET URL: https://api.thetvdb.com/series/388286 [Status: 200] 2022-08-23 21:46:12 DEBUG SHOWQUEUE-ADD :: [400903a] Getting all show data for 388286 2022-08-23 21:46:12 DEBUG SHOWQUEUE-ADD :: [400903a] Getting all series data for 388286 2022-08-23 21:46:12 DEBUG SHOWQUEUE-ADD :: [400903a] Configured language en override show language of en 2022-08-23 21:46:12 DEBUG SHOWQUEUE-ADD :: [400903a] TVDBv2: {'language': 'en', 'use_zip': True, 'session': , 'cache': 'C:\\Medusa\\Data\\cache\\indexers\\TVDBv2'} 2022-08-23 21:46:12 DEBUG SHOWQUEUE-ADD :: [400903a] 388286: Unable to find the show in the database 2022-08-23 21:46:12 DEBUG SHOWQUEUE-ADD :: [400903a] 388286: Loading show info from database 2022-08-23 21:46:12 INFO SHOWQUEUE-ADD :: [400903a] Starting to add show by Indexer Id: 388286 2022-08-23 21:46:09 DEBUG APIv2-Thread_5 :: [400903a] Using custom UI: 2022-08-23 21:46:09 DEBUG APIv2-Thread_5 :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:46:09 DEBUG APIv2-Thread_5 :: [400903a] GET URL: https://api.thetvdb.com/search/series?name=atlantic%3A+a+year+in+the+wild [Status: 200] 2022-08-23 21:46:09 DEBUG APIv2-Thread_5 :: [400903a] Searching for show: atlantic: a year in the wild 2022-08-23 21:46:09 DEBUG APIv2-Thread_5 :: [400903a] Searching for show with search term(s): ['atlantic: a year in the wild'] on indexer: tvdb 2022-08-23 21:42:20 DEBUG SHOWQUEUE-ADD :: [400903a] Generating default search template for show Atlantic: A Year in the Wild, creating template %SN S%0SE%0E, title Atlantic: A Year in the Wild, season -1 2022-08-23 21:42:20 INFO SHOWQUEUE-ADD :: [400903a] Finished processing 0 scene exceptions. 2022-08-23 21:42:20 INFO SHOWQUEUE-ADD :: [400903a] Updating exception_cache and exception_season_cache 2022-08-23 21:42:20 DEBUG SHOWQUEUE-ADD :: [400903a] Transaction with 1 queries executed 2022-08-23 21:42:20 WARNING SHOWQUEUE-ADD :: [400903a] Error getting external key tvdb, error: ForbiddenException() 2022-08-23 21:42:20 DEBUG SHOWQUEUE-ADD :: [400903a] Looking for externals using Trakt and tvdb id 388286 2022-08-23 21:42:20 DEBUG SHOWQUEUE-ADD :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:42:20 DEBUG SHOWQUEUE-ADD :: [400903a] GET URL: https://api.themoviedb.org/3/find/388286?external_source=tvdb_id&api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-08-23 21:42:20 DEBUG SHOWQUEUE-ADD :: [400903a] Trying other indexer: TMDB get_id_by_external 2022-08-23 21:42:20 DEBUG SHOWQUEUE-ADD :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:42:20 DEBUG SHOWQUEUE-ADD :: [400903a] GET URL: https://api.themoviedb.org/3/configuration?api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-08-23 21:42:20 DEBUG SHOWQUEUE-ADD :: [400903a] Could not get tvmaze externals using external key tvdb_id and id 388286 2022-08-23 21:42:20 DEBUG SHOWQUEUE-ADD :: [400903a] The response returned a non-200 response while requesting url http://api.tvmaze.com/lookup/shows?thetvdb=388286 Error: HTTPError('404 Client Error: Not Found for url: http://api.tvmaze.com/lookup/shows?thetvdb=388286') 2022-08-23 21:42:20 DEBUG SHOWQUEUE-ADD :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:42:20 DEBUG SHOWQUEUE-ADD :: [400903a] GET URL: http://api.tvmaze.com/lookup/shows?thetvdb=388286 [Status: 404] 2022-08-23 21:42:19 DEBUG SHOWQUEUE-ADD :: [400903a] Trying other indexer: TVmaze get_id_by_external 2022-08-23 21:42:19 DEBUG SHOWQUEUE-ADD :: [400903a] 388286: Loading show info from TVDBv2 2022-08-23 21:42:19 DEBUG SHOWQUEUE-ADD :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:42:19 DEBUG SHOWQUEUE-ADD :: [400903a] GET URL: https://api.thetvdb.com/series/388286/episodes/query?page=1 [Status: 200] 2022-08-23 21:42:19 DEBUG SHOWQUEUE-ADD :: [400903a] Getting all episodes of 388286 2022-08-23 21:42:19 DEBUG SHOWQUEUE-ADD :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:42:19 DEBUG SHOWQUEUE-ADD :: [400903a] GET URL: https://api.thetvdb.com/series/388286 [Status: 200] 2022-08-23 21:42:19 DEBUG SHOWQUEUE-ADD :: [400903a] Getting all show data for 388286 2022-08-23 21:42:19 DEBUG SHOWQUEUE-ADD :: [400903a] Getting all series data for 388286 2022-08-23 21:42:19 DEBUG SHOWQUEUE-ADD :: [400903a] Configured language en override show language of en 2022-08-23 21:42:19 DEBUG SHOWQUEUE-ADD :: [400903a] TVDBv2: {'language': 'en', 'use_zip': True, 'session': , 'cache': 'C:\\Medusa\\Data\\cache\\indexers\\TVDBv2'} 2022-08-23 21:42:19 DEBUG SHOWQUEUE-ADD :: [400903a] 388286: Unable to find the show in the database 2022-08-23 21:42:19 DEBUG SHOWQUEUE-ADD :: [400903a] 388286: Loading show info from database 2022-08-23 21:42:19 INFO SHOWQUEUE-ADD :: [400903a] Starting to add show by show_dir: O:\TV\Atlantic A Year in the Wild (2020) 2022-08-23 21:42:16 DEBUG APIv2-Thread_67 :: [400903a] Using custom UI: 2022-08-23 21:42:16 DEBUG APIv2-Thread_67 :: [400903a] User-Agent: Medusa/1.0.6 (Windows; 10; bd2370a4-2366-11ed-9b80-e0d4e8761f82) 2022-08-23 21:42:16 DEBUG APIv2-Thread_67 :: [400903a] GET URL: https://api.thetvdb.com/search/series?name=atlantic+a+year+in+the+wild [Status: 200] 2022-08-23 21:42:15 DEBUG APIv2-Thread_67 :: [400903a] Searching for show: atlantic a year in the wild 2022-08-23 21:42:15 DEBUG APIv2-Thread_67 :: [400903a] Searching for show with search term(s): ['Atlantic A Year in the Wild'] on indexer: tvdb 2022-08-23 21:42:10 DEBUG APIv2-Thread_62 :: [400903a] Cannot load the KODI 12+ metadata file from S:\TV\SAS Rogue Heroes (2022)\tvshow.nfo, it does not exist 2022-08-23 21:42:10 DEBUG APIv2-Thread_62 :: [400903a] Cannot load the KODI metadata file from S:\TV\SAS Rogue Heroes (2022)\tvshow.nfo, it does not exist 2022-08-23 21:42:10 DEBUG APIv2-Thread_62 :: [400903a] Cannot load the KODI 12+ metadata file from S:\TV\Renovation Realities (2007)\tvshow.nfo, it does not exist 2022-08-23 21:42:10 DEBUG APIv2-Thread_62 :: [400903a] Cannot load the KODI metadata file from S:\TV\Renovation Realities (2007)\tvshow.nfo, it does not exist 2022-08-23 21:42:10 DEBUG APIv2-Thread_62 :: [400903a] Loading show info from KODI metadata file in Q:\TV\iZombie (2014) 2022-08-23 21:42:10 DEBUG APIv2-Thread_62 :: [400903a] Loading show info from KODI metadata file in Q:\TV\iCarly (2007) 2022-08-23 21:42:10 DEBUG APIv2-Thread_62 :: [400903a] Loading show info from KODI metadata file in Q:\TV\HIM (2016) 2022-08-23 21:42:10 WARNING APIv2-Thread_62 :: [400903a] Empty or field in NFO, unable to find a ID 2022-08-23 21:42:10 DEBUG APIv2-Thread_62 :: [400903a] Loading show info from KODI 12+ metadata file in P:\Childrens TV\Sesame Street (1969) 2022-08-23 21:42:10 WARNING APIv2-Thread_62 :: [400903a] Empty or field in NFO, unable to find a ID 2022-08-23 21:42:10 DEBUG APIv2-Thread_62 :: [400903a] Loading show info from KODI metadata file in P:\Childrens TV\Sesame Street (1969) 2022-08-23 21:42:10 DEBUG APIv2-Thread_62 :: [400903a] Cannot load the KODI 12+ metadata file from O:\TV\Atlantic A Year in the Wild (2020)\tvshow.nfo, it does not exist 2022-08-23 21:42:10 DEBUG APIv2-Thread_62 :: [400903a] Cannot load the KODI metadata file from O:\TV\Atlantic A Year in the Wild (2020)\tvshow.nfo, it does not exist ```

Additional context I have been able to add other shows successfully right before this one and in the middle of trying to add this show. I believe it is specific to this show.

fire222 commented 2 years ago

same here but it happens to some shows and not others

jpowers40828 commented 2 years ago

same here but it happens to some shows and not others

Of the 2,961 shows in my list, this was the first i had an issue with.

medariox commented 2 years ago

I think it's because the show isn't on IMDB. Could that be?

jpowers40828 commented 2 years ago

I think it's because the show isn't on IMDB. Could that be?

That would make sense. I just did an update and I am seeing more info now. It looks like it is not in tvmaze.

BenjV commented 2 years ago

No that is not it. Searching on Tvdb (and others) with a colon(:) in the name does not work. Try searching for just Atlantic, then you will find the show.

jpowers40828 commented 2 years ago

No that is not it. Searching on Tvdb (and others) with a colon(:) in the name does not work. Try searching for just Atlantic, then you will find the show.

I didn't have any issue finding the show. I found it with no issue (using the colon). I can choose said show and try to add it, but it creates the error above.

mrman486 commented 2 years ago

Seeing this on shows that are not that popular.

As others have said I can search and find the show on TMDB for example, then click add and nothing happens.

My logs are the same as other posters as well.

I have tried with show title as well as the ID Example ID is 208738 For show https://www.themoviedb.org/tv/208738-jamie-s-one-pan-wonders Here is the log I get when I try to add it

2022-09-07 11:44:14 DEBUG SHOWQUEUE-ADD :: [d7b29dc] Generating default search template for show Jamie's One-Pan Wonders, creating template %SN S%0SE%0E, title Jamie's One-Pan Wonders, season -1 2022-09-07 11:44:14 INFO SHOWQUEUE-ADD :: [d7b29dc] Finished processing 0 scene exceptions. 2022-09-07 11:44:14 INFO SHOWQUEUE-ADD :: [d7b29dc] Updating exception_cache and exception_season_cache 2022-09-07 11:44:14 DEBUG SHOWQUEUE-ADD :: [d7b29dc] Transaction with 3 queries executed 2022-09-07 11:44:14 DEBUG SHOWQUEUE-ADD :: [d7b29dc] User-Agent: Medusa/1.0.7 (Linux; 4.19.122-2-osmc; 38432698-2e4e-11ed-8724-b827eb4208cb) 2022-09-07 11:44:14 DEBUG SHOWQUEUE-ADD :: [d7b29dc] GET URL: https://api.themoviedb.org/3/configuration?api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-09-07 11:44:13 DEBUG SHOWQUEUE-ADD :: [d7b29dc] Looking for externals using Trakt and tvdb id 423607 2022-09-07 11:44:13 DEBUG SHOWQUEUE-ADD :: [d7b29dc] Could not get tvmaze externals using external key tvdb_id and id 423607 2022-09-07 11:44:13 DEBUG SHOWQUEUE-ADD :: [d7b29dc] The response returned a non-200 response while requesting url http://api.tvmaze.com/lookup/shows?thetvdb=423607 Error: HTTPError('404 Client Error: Not Found for url: http://api.tvmaze.com/lookup/shows?thetvdb=423607') 2022-09-07 11:44:13 DEBUG SHOWQUEUE-ADD :: [d7b29dc] User-Agent: Medusa/1.0.7 (Linux; 4.19.122-2-osmc; 38432698-2e4e-11ed-8724-b827eb4208cb) 2022-09-07 11:44:13 DEBUG SHOWQUEUE-ADD :: [d7b29dc] GET URL: http://api.tvmaze.com/lookup/shows?thetvdb=423607 [Status: 404] 2022-09-07 11:44:12 DEBUG SHOWQUEUE-ADD :: [d7b29dc] Trying other indexer: TVmaze get_id_by_external 2022-09-07 11:44:12 DEBUG SHOWQUEUE-ADD :: [d7b29dc] 208738: Loading show info from TMDB 2022-09-07 11:44:12 DEBUG SHOWQUEUE-ADD :: [d7b29dc] User-Agent: Medusa/1.0.7 (Linux; 4.19.122-2-osmc; 38432698-2e4e-11ed-8724-b827eb4208cb) 2022-09-07 11:44:12 DEBUG SHOWQUEUE-ADD :: [d7b29dc] GET URL: https://api.themoviedb.org/3/tv/208738/season/1?language=en&api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-09-07 11:44:12 DEBUG SHOWQUEUE-ADD :: [d7b29dc] Getting all episodes of 208738 2022-09-07 11:44:12 DEBUG SHOWQUEUE-ADD :: [d7b29dc] User-Agent: Medusa/1.0.7 (Linux; 4.19.122-2-osmc; 38432698-2e4e-11ed-8724-b827eb4208cb) 2022-09-07 11:44:12 DEBUG SHOWQUEUE-ADD :: [d7b29dc] GET URL: https://api.themoviedb.org/3/tv/208738?language=en&append_to_response=content_ratings%2Cexternal_ids&api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-09-07 11:44:11 DEBUG SHOWQUEUE-ADD :: [d7b29dc] Getting all show data for 208738 2022-09-07 11:44:11 DEBUG SHOWQUEUE-ADD :: [d7b29dc] Getting all series data for 208738 2022-09-07 11:44:11 DEBUG SHOWQUEUE-ADD :: [d7b29dc] Configured language en override show language of en 2022-09-07 11:44:11 DEBUG SHOWQUEUE-ADD :: [d7b29dc] User-Agent: Medusa/1.0.7 (Linux; 4.19.122-2-osmc; 38432698-2e4e-11ed-8724-b827eb4208cb) 2022-09-07 11:44:11 DEBUG SHOWQUEUE-ADD :: [d7b29dc] GET URL: https://api.themoviedb.org/3/configuration?api_key=edc5f123313769de83a71e157758030b [Status: 200] 2022-09-07 11:44:11 DEBUG SHOWQUEUE-ADD :: [d7b29dc] TMDB: {'language': 'en', 'use_zip': True, 'session': <medusa.session.core.IndexerSession object at 0x73c45d30>, 'cache': '/opt/medusa/cache/indexers/TMDB'} 2022-09-07 11:44:11 DEBUG SHOWQUEUE-ADD :: [d7b29dc] 208738: Unable to find the show in the database 2022-09-07 11:44:11 DEBUG SHOWQUEUE-ADD :: [d7b29dc] 208738: Loading show info from database 2022-09-07 11:44:11 INFO SHOWQUEUE-ADD :: [d7b29dc] Starting to add show by Indexer Id: 208738

p0psicles commented 2 years ago

Something weird is going on with the tmdbsimple api package. Api requests are taking very long. Like sometimes I'll have to wait a minute or longer for an api call. I could reproduce the same when trying it out, outside of medusa.

Like:

pip install tmdbsimple
import tmdbsimple
imdbsimple.API_KEY = 'your api key'
tmdbsimple.Configuration().info()
p0psicles commented 2 years ago

can someone try to reproduce this locally?

mrman486 commented 2 years ago

As requested >>> tmdbsimple.Configuration().info() {u'images': {u'profile_sizes': [u'w45', u'w185', u'h632', u'original'], u'secure_base_url': u'https://image.tmdb.org/t/p/', u'poster_sizes': [u'w92', u'w154', u'w185', u'w342', u'w500', u'w780', u'original'], u'base_url': u'http://image.tmdb.org/t/p/', u'logo_sizes': [u'w45', u'w92', u'w154', u'w185', u'w300', u'w500', u'original'], u'backdrop_sizes': [u'w300', u'w780', u'w1280', u'original'], u'still_sizes': [u'w92', u'w185', u'w300', u'original']}, u'change_keys': [u'adult', u'air_date', u'also_known_as', u'alternative_titles', u'biography', u'birthday', u'budget', u'cast', u'certifications', u'character_names', u'created_by', u'crew', u'deathday', u'episode', u'episode_number', u'episode_run_time', u'freebase_id', u'freebase_mid', u'general', u'genres', u'guest_stars', u'homepage', u'images', u'imdb_id', u'languages', u'name', u'network', u'origin_country', u'original_name', u'original_title', u'overview', u'parts', u'place_of_birth', u'plot_keywords', u'production_code', u'production_companies', u'production_countries', u'releases', u'revenue', u'runtime', u'season', u'season_number', u'season_regular', u'spoken_languages', u'status', u'tagline', u'title', u'translations', u'tvdb_id', u'tvrage_id', u'type', u'video', u'videos']}

mrman486 commented 2 years ago

I just tried again after updating and 1.0.8 and it worked. Seems the IMDB update fixed this one. I will test on a few other shows that were failing.

2022-09-09 13:10:16 INFO SHOWQUEUE-ADD :: [f690170] Setting all previously aired episodes to the specified status: Skipped 2022-09-09 13:10:16 INFO SHOWQUEUE-ADD :: [f690170] 208738: Not loading show info from IMDb, because we don't know its ID. 2022-09-09 13:10:16 INFO SHOWQUEUE-ADD :: [f690170] 208738: Problem trying to translate a show title to an imdb id. 2022-09-09 13:10:14 INFO SHOWQUEUE-ADD :: [f690170] Finished processing 0 scene exceptions. 2022-09-09 13:10:14 INFO SHOWQUEUE-ADD :: [f690170] Updating exception_cache and exception_season_cache

p0psicles commented 2 years ago

It's really weird. I tried adding shows from tvdb, tvmaze and tmdb. And tvmaze and tmdb where timing out. While tvdb worked fine. But when directly calling the same api's through an api client like Postman, it was very fast. So maybe that's just a network issue on my end.

For me this was an ip4/ip6 issue. https://stackoverflow.com/questions/67159193/stuck-in-process-sock-connectsa-or-making-connections

p0psicles commented 2 years ago

I have tried with show title as well as the ID Example ID is 208738 For show https://www.themoviedb.org/tv/208738-jamie-s-one-pan-wonders

seems to work fine for me with latest version?

mrman486 commented 2 years ago

Yes working great now. No issues now after the IMDb update in 1.0.8

thank you