mirror of https://github.com/morpheus65535/bazarr
Fix for episodes being removed from DB if connection to Sonarr fail.
This commit is contained in:
parent
94474e8eae
commit
90609b6433
|
@ -261,6 +261,8 @@ def update_movies():
|
||||||
store_subtitles_movie(path_replace_movie(altered_movie[1]))
|
store_subtitles_movie(path_replace_movie(altered_movie[1]))
|
||||||
list_missing_subtitles_movies(altered_movie[2])
|
list_missing_subtitles_movies(altered_movie[2])
|
||||||
|
|
||||||
|
logging.debug('BAZARR All movies synced from Radarr into database.')
|
||||||
|
|
||||||
# Search for desired subtitles if no more than 5 movies have been added.
|
# Search for desired subtitles if no more than 5 movies have been added.
|
||||||
if len(altered_movies) <= 5:
|
if len(altered_movies) <= 5:
|
||||||
logging.debug("BAZARR No more than 5 movies were added during this sync then we'll search for subtitles.")
|
logging.debug("BAZARR No more than 5 movies were added during this sync then we'll search for subtitles.")
|
||||||
|
@ -269,8 +271,6 @@ def update_movies():
|
||||||
else:
|
else:
|
||||||
logging.debug("BAZARR More than 5 movies were added during this sync then we wont search for subtitles.")
|
logging.debug("BAZARR More than 5 movies were added during this sync then we wont search for subtitles.")
|
||||||
|
|
||||||
logging.debug('BAZARR All movies synced from Radarr into database.')
|
|
||||||
|
|
||||||
|
|
||||||
def get_profile_list():
|
def get_profile_list():
|
||||||
apikey_radarr = settings.radarr.apikey
|
apikey_radarr = settings.radarr.apikey
|
||||||
|
|
|
@ -161,6 +161,8 @@ def update_series():
|
||||||
TableShows.tvdb_id == series
|
TableShows.tvdb_id == series
|
||||||
).execute()
|
).execute()
|
||||||
|
|
||||||
|
logging.debug('BAZARR All series synced from Sonarr into database.')
|
||||||
|
|
||||||
|
|
||||||
def get_profile_list():
|
def get_profile_list():
|
||||||
apikey_sonarr = settings.sonarr.apikey
|
apikey_sonarr = settings.sonarr.apikey
|
||||||
|
|
Loading…
Reference in New Issue