diff --git a/bazarr/radarr/sync/movies.py b/bazarr/radarr/sync/movies.py index 72d18f511..dca35c060 100644 --- a/bazarr/radarr/sync/movies.py +++ b/bazarr/radarr/sync/movies.py @@ -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( diff --git a/bazarr/sonarr/sync/episodes.py b/bazarr/sonarr/sync/episodes.py index e2623ce71..83e68c6c8 100644 --- a/bazarr/sonarr/sync/episodes.py +++ b/bazarr/sonarr/sync/episodes.py @@ -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) diff --git a/bazarr/subtitles/indexer/series.py b/bazarr/subtitles/indexer/series.py index 1d1d98ef8..9c86378ae 100644 --- a/bazarr/subtitles/indexer/series.py +++ b/bazarr/subtitles/indexer/series.py @@ -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()