Fixed sync issue with Radarr that would remove all movies from database on every sync.

pull/2742/head v1.5.1-beta.2
morpheus65535 2 weeks ago
parent 4809b403ca
commit 60febe3d12

@ -133,7 +133,7 @@ def update_movies(send_event=True):
select(TableMovies))
.all()]]
current_movies_radarr = [str(movie['id']) for movie in movies if movie['hasFile'] and
current_movies_radarr = [movie['id'] for movie in movies if movie['hasFile'] and
'movieFile' in movie and
(movie['movieFile']['size'] > MINIMUM_VIDEO_SIZE or
get_movie_file_size_from_db(movie['movieFile']['path']) > MINIMUM_VIDEO_SIZE)]
@ -184,7 +184,7 @@ def update_movies(send_event=True):
get_movie_file_size_from_db(movie['movieFile']['path']) > MINIMUM_VIDEO_SIZE):
# Add/update movies from Radarr that have a movie file to current movies list
trace(f"{i}: (Processing) {movie['title']}")
if str(movie['id']) in current_movies_id_db:
if movie['id'] in current_movies_id_db:
parsed_movie = movieParser(movie, action='update',
tags_dict=tagsDict,
language_profiles=language_profiles,

Loading…
Cancel
Save