From cc07ab5331f5d6c478917248ce9aaddf4840ce17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Tue, 19 May 2020 11:39:57 -0400 Subject: [PATCH] WIP --- bazarr/get_episodes.py | 4 ++-- bazarr/get_subtitle.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bazarr/get_episodes.py b/bazarr/get_episodes.py index d49a6224d..50d44c70e 100644 --- a/bazarr/get_episodes.py +++ b/bazarr/get_episodes.py @@ -157,11 +157,11 @@ def sync_episodes(): event_stream(type='episode', action='insert', series=added_episode['sonarrSeriesId'], episode=added_episode['sonarrEpisodeId']) else: - logging.debug('BAZARR unable to insert this episode into the database:{}'.format(path_replace(added_episode['path']))) + logging.debug('BAZARR unable to insert this episode into the database:{}'.format(path_mappings.path_replace(added_episode['path']))) # Store subtitles for added or modified episodes for i, altered_episode in enumerate(altered_episodes, 1): - store_subtitles(altered_episode[1], path_replace(altered_episode[1])) + store_subtitles(altered_episode[1], path_mappings.path_replace(altered_episode[1])) logging.debug('BAZARR All episodes synced from Sonarr into database.') diff --git a/bazarr/get_subtitle.py b/bazarr/get_subtitle.py index 3e6ba0058..dbff11573 100644 --- a/bazarr/get_subtitle.py +++ b/bazarr/get_subtitle.py @@ -842,8 +842,8 @@ def wanted_search_missing_subtitles_series(): episodes = database.execute("SELECT path FROM table_episodes WHERE missing_subtitles != '[]'" + monitored_only_query_string_sonarr) - # path_mappings.path_replace - dict_mapper.path_mappings.path_replace(episodes) + # path_replace + dict_mapper.path_replace(episodes) count_episodes = len(episodes) for i, episode in enumerate(episodes, 1): @@ -865,8 +865,8 @@ def wanted_search_missing_subtitles_movies(): movies = database.execute("SELECT path FROM table_movies WHERE missing_subtitles != '[]'" + monitored_only_query_string_radarr) - # path_mappings.path_replace - dict_mapper.path_mappings.path_replace_movie(movies) + # path_replace + dict_mapper.path_replace_movie(movies) count_movies = len(movies) for i, movie in enumerate(movies, 1):