mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-23 22:27:17 -04:00
no log: removed some unused code during sync process with Sonarr and Radarr
This commit is contained in:
parent
8705f8074a
commit
e9c6e1f9c4
3 changed files with 2 additions and 10 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue