1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-01-04 22:11:05 +00:00

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

This commit is contained in:
morpheus65535 2024-12-28 14:01:25 -05:00
parent 4809b403ca
commit 60febe3d12

View file

@ -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,