sirk123au / ArrTools

A collection of tools for Radarr, Sonarr & Lidarr
GNU General Public License v3.0
141 stars 16 forks source link

Errors with both Sonarr and Radarr Importing #2

Closed Deadly-Bytes closed 4 years ago

Deadly-Bytes commented 4 years ago

I had a few different error but the biggest issue right now is that both the sonarr and radarr import tool always say the movie/tv show already exists and then won't add anything.

I appreciate the work you've done making this and hope I can get it to run as I have some lists I would really like to get into each program.

While adding shows I was getting Failed to get TvDB JWT Token

Here is some of the log:

2020-04-04 15:40:18,414 [DEBUG]  Starting new HTTP connection (1): localhost:18990
2020-04-04 15:40:18,558 [DEBUG]  http://localhost:18990 "GET /api/series HTTP/1.1" 200 None
2020-04-04 15:40:18,564 [INFO ]  Found 1 TV Shows in TV-Shows-Documentary-Import.csv. :)
2020-04-04 15:40:18,565 [DEBUG]  Starting new HTTPS connection (1): www.omdbapi.com:443
2020-04-04 15:40:18,833 [DEBUG]  https://www.omdbapi.com:443 "GET /?t=Dirty%20Jobs&y=2003&apikey=xxxxxxx HTTP/1.1" 200 None
2020-04-04 15:40:18,837 [DEBUG]  Starting new HTTPS connection (1): api.thetvdb.com:443
2020-04-04 15:41:18,926 [DEBUG]  https://api.thetvdb.com:443 "POST /login HTTP/1.1" 504 1033
2020-04-04 15:41:18,928 [ERROR]  Failed to get TvDB JWT Token

I don't get that error anymore. Not sure what changed but now it doesn't matter what I put in the list, it always comes back with already exists in sonarr.

2020-04-04 22:40:25,256 [INFO ] Downloading Sonarr Show Data. :) 2020-04-04 22:40:25,259 [DEBUG] Starting new HTTP connection (1): localhost:18990 2020-04-04 22:40:25,395 [DEBUG] http://localhost:18990 "GET /api/series HTTP/1.1" 200 None 2020-04-04 22:40:25,401 [INFO ] Found 1 TV Shows in TV-Shows-Documentary-Import.csv. :) 2020-04-04 22:40:25,403 [DEBUG] Starting new HTTPS connection (1): www.omdbapi.com:443 2020-04-04 22:40:25,691 [DEBUG] https://www.omdbapi.com:443 "GET /?t=shark&y=2015&apikey=xxxxx HTTP/1.1" 200 None 2020-04-04 22:40:25,698 [DEBUG] Starting new HTTPS connection (1): api.thetvdb.com:443 2020-04-04 22:40:25,864 [DEBUG] https://api.thetvdb.com:443 "POST /login HTTP/1.1" 200 528 2020-04-04 22:40:25,868 [DEBUG] Starting new HTTPS connection (1): api.thetvdb.com:443 2020-04-04 22:40:26,073 [DEBUG] https://api.thetvdb.com:443 "GET /search/series?imdbId=tt4706496 HTTP/1.1" 200 448 2020-04-04 22:40:26,075 [DEBUG] Converted retries value: 20 -> Retry(total=20, connect=None, read=None, redirect=None, status=None) 2020-04-04 22:40:26,077 [DEBUG] Starting new HTTP connection (1): localhost:18990 2020-04-04 22:40:26,355 [DEBUG] http://localhost:18990 "GET /api/series/lookup?term=tvdb:295438&apikey=xxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 None 2020-04-04 22:40:26,358 [DEBUG] Starting new HTTP connection (1): localhost:18990 2020-04-04 22:40:26,370 [DEBUG] http://localhost:18990 "POST /api/series HTTP/1.1" 400 None 2020-04-04 22:40:26,371 [INFO ] tt4706496 Shark (2015) (2015) already Exists in Sonarr. 2020-04-04 22:40:26,372 [INFO ] Added 0 of 1 Shows, 1 Already Exist

When adding a movie I "randomly" get local variable 'headers' referenced before assignment

Here I some of the log: 2020-04-04 14:24:47,402 [DEBUG] http://localhost:17880 "GET /api/movie/lookup/imdb?imdbId=tt1529567&apikey=xxxxxxxxxxxxxxxx HTTP/1.1" 200 None 2020-04-04 14:24:47,404 [DEBUG] Starting new HTTP connection (1): localhost:17880 2020-04-04 14:24:47,430 [DEBUG] http://localhost:17880 "POST /api/movie HTTP/1.1" 500 None 2020-04-04 14:24:47,433 [DEBUG] Starting new HTTPS connection (1): www.omdbapi.com:443 2020-04-04 14:24:47,690 [DEBUG] https://www.omdbapi.com:443 "GET /?i=tt5532610&apikey=xxxx HTTP/1.1" 200 None 2020-04-04 14:24:47,694 [DEBUG] Converted retries value: 20 -> Retry(total=20, connect=None, read=None, redirect=None, status=None) 2020-04-04 14:24:47,695 [DEBUG] Starting new HTTP connection (1): localhost:17880 2020-04-04 14:24:47,810 [DEBUG] http://localhost:17880 "GET /api/profile HTTP/1.1" 200 None 2020-04-04 14:24:47,815 [DEBUG] Starting new HTTP connection (1): localhost:17880 2020-04-04 14:24:47,839 [DEBUG] http://localhost:17880 "GET /api/movie/lookup/imdb?imdbId=tt5532610&apikey=xxxxxxxxxxxxxx HTTP/1.1" 200 None 2020-04-04 14:24:47,842 [DEBUG] Starting new HTTP connection (1): localhost:17880 2020-04-04 14:24:47,867 [DEBUG] http://localhost:17880 "POST /api/movie HTTP/1.1" 500 None 2020-04-04 14:24:47,870 [DEBUG] Starting new HTTPS connection (1): www.omdbapi.com:443 2020-04-04 14:24:48,158 [DEBUG] https://www.omdbapi.com:443 "GET /?i=tt1424432&apikey=xxxxx HTTP/1.1" 200 None 2020-04-04 14:24:48,163 [INFO ] tt1424432 Senna (2010) already Exists in Radarr. 2020-04-04 14:24:48,165 [DEBUG] Starting new HTTPS connection (1): www.omdbapi.com:443 2020-04-04 14:24:48,465 [DEBUG] https://www.omdbapi.com:443 "GET /?i=&apikey=xxxxxx HTTP/1.1" 200 None 2020-04-04 14:24:48,470 [DEBUG] Starting new HTTPS connection (1): www.omdbapi.com:443 2020-04-04 14:24:48,731 [DEBUG] https://www.omdbapi.com:443 "GET /?t=Sharks:%20Kings%20of%20the%20Ocean&y=None&apikey=xxxxx HTTP/1.1" 200 47 2020-04-04 14:24:48,734 [ERROR] local variable 'headers' referenced before assignment

That looks to be some sort of formatting error I can't quite put my finger on but when not having an issue with that I now have the same issue as with sonarr in that it says the movie already exists in radarr.

sirk123au commented 4 years ago

Hi thanks for the feedback have found a few simple errors make sure the URL Base is in the config file sonarr and radarr don't work properly with out it.