Skip to content

Commit

Permalink
Fixed sync issue with Radarr that would remove all movies from databa…
Browse files Browse the repository at this point in the history
…se on every sync.
  • Loading branch information
morpheus65535 committed Dec 28, 2024
1 parent 4809b40 commit 60febe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bazarr/radarr/sync/movies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 60febe3

Please sign in to comment.