1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-25 09:12:38 +00:00
This commit is contained in:
Louis Vézina 2020-05-19 11:39:57 -04:00
parent 442f5d2a5e
commit cc07ab5331
2 changed files with 6 additions and 6 deletions

View file

@ -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.')

View file

@ -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):