no log: removed some unused code during sync process with Sonarr and Radarr

pull/2822/head v1.5.2-beta.3
morpheus65535 1 month ago
parent 8705f8074a
commit e9c6e1f9c4

@ -333,10 +333,6 @@ def update_one_movie(movie_id, action, defer_search=False):
logging.debug(
f'BAZARR inserted this movie into the database:{path_mappings.path_replace_movie(movie["path"])}')
# Storing existing subtitles
logging.debug(f'BAZARR storing subtitles for this movie: {path_mappings.path_replace_movie(movie["path"])}')
store_subtitles_movie(movie['path'], path_mappings.path_replace_movie(movie['path']))
# Downloading missing subtitles
if defer_search:
logging.debug(

@ -258,10 +258,6 @@ def sync_one_episode(episode_id, defer_search=False):
logging.debug(
f'BAZARR inserted this episode into the database:{path_mappings.path_replace(episode["path"])}')
# Storing existing subtitles
logging.debug(f'BAZARR storing subtitles for this episode: {path_mappings.path_replace(episode["path"])}')
store_subtitles(episode['path'], path_mappings.path_replace(episode['path']))
# Downloading missing subtitles
if defer_search:
logging.debug(
@ -270,4 +266,4 @@ def sync_one_episode(episode_id, defer_search=False):
else:
logging.debug(
f'BAZARR downloading missing subtitles for this episode: {path_mappings.path_replace(episode["path"])}')
episode_download_subtitles(episode_id)
episode_download_subtitles(episode_id, send_progress=True)

@ -132,7 +132,7 @@ def store_subtitles(original_path, reversed_path, use_cache=True):
.values(subtitles=str(actual_subtitles))
.where(TableEpisodes.path == original_path))
matching_episodes = database.execute(
select(TableEpisodes.sonarrEpisodeId, TableEpisodes.sonarrSeriesId)
select(TableEpisodes.sonarrEpisodeId)
.where(TableEpisodes.path == original_path))\
.all()

Loading…
Cancel
Save