1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-27 18:17:46 +00:00
This commit is contained in:
Louis Vézina 2020-10-08 09:32:13 -04:00
parent 7c5839ab0d
commit 6e7a02f9e1
2 changed files with 8 additions and 2 deletions

View file

@ -190,7 +190,10 @@ def sync_episodes():
"sonarrEpisodeId = ?" + get_exclusion_clause('series'), (altered_episode[0],), "sonarrEpisodeId = ?" + get_exclusion_clause('series'), (altered_episode[0],),
only_one=True) only_one=True)
if data:
episode_download_subtitles(data['sonarrEpisodeId']) episode_download_subtitles(data['sonarrEpisodeId'])
else:
logging.debug("BAZARR skipping download for this movie as it is excluded.")
else: else:
logging.debug("BAZARR More than 5 episodes were added during this sync then we wont search for subtitles right now.") logging.debug("BAZARR More than 5 episodes were added during this sync then we wont search for subtitles right now.")

View file

@ -273,7 +273,10 @@ def update_movies():
for altered_movie in altered_movies: for altered_movie in altered_movies:
data = database.execute("SELECT * FROM table_movies WHERE radarrId = ?" + data = database.execute("SELECT * FROM table_movies WHERE radarrId = ?" +
get_exclusion_clause('movie'), (altered_movie[2],), only_one=True) get_exclusion_clause('movie'), (altered_movie[2],), only_one=True)
if data:
movies_download_subtitles(data['radarrId']) movies_download_subtitles(data['radarrId'])
else:
logging.debug("BAZARR skipping download for this movie as it is excluded.")
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.")