From 79f5c7d67590250317d82150e11a403c01ca79c3 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Tue, 29 Aug 2023 20:13:38 -0400 Subject: [PATCH] no log: fix typo on last commit --- bazarr/api/episodes/episodes_subtitles.py | 8 ++++---- bazarr/api/movies/movies_subtitles.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bazarr/api/episodes/episodes_subtitles.py b/bazarr/api/episodes/episodes_subtitles.py index 67f1add7b..520a809a6 100644 --- a/bazarr/api/episodes/episodes_subtitles.py +++ b/bazarr/api/episodes/episodes_subtitles.py @@ -37,7 +37,7 @@ class EpisodesSubtitles(Resource): @api_ns_episodes_subtitles.response(204, 'Success') @api_ns_episodes_subtitles.response(401, 'Not Authenticated') @api_ns_episodes_subtitles.response(404, 'Episode not found') - @api_ns_episodes_subtitles.response(409, 'Unable to save subtitles file. Permission of path mapping issue?') + @api_ns_episodes_subtitles.response(409, 'Unable to save subtitles file. Permission or path mapping issue?') @api_ns_episodes_subtitles.response(410, 'Episode file not found. Path mapping issue?') def patch(self): """Download an episode subtitles""" @@ -87,7 +87,7 @@ class EpisodesSubtitles(Resource): else: event_stream(type='episode', payload=sonarrEpisodeId) except OSError: - return 'Unable to save subtitles file. Permission of path mapping issue?', 409 + return 'Unable to save subtitles file. Permission or path mapping issue?', 409 else: return '', 204 @@ -105,7 +105,7 @@ class EpisodesSubtitles(Resource): @api_ns_episodes_subtitles.response(204, 'Success') @api_ns_episodes_subtitles.response(401, 'Not Authenticated') @api_ns_episodes_subtitles.response(404, 'Episode not found') - @api_ns_episodes_subtitles.response(409, 'Unable to save subtitles file. Permission of path mapping issue?') + @api_ns_episodes_subtitles.response(409, 'Unable to save subtitles file. Permission or path mapping issue?') @api_ns_episodes_subtitles.response(410, 'Episode file not found. Path mapping issue?') def post(self): """Upload an episode subtitles""" @@ -161,7 +161,7 @@ class EpisodesSubtitles(Resource): send_notifications(sonarrSeriesId, sonarrEpisodeId, result.message) store_subtitles(result.path, episodePath) except OSError: - return 'Unable to save subtitles file. Permission of path mapping issue?', 409 + return 'Unable to save subtitles file. Permission or path mapping issue?', 409 else: return '', 204 diff --git a/bazarr/api/movies/movies_subtitles.py b/bazarr/api/movies/movies_subtitles.py index 10584caf7..38fd4a428 100644 --- a/bazarr/api/movies/movies_subtitles.py +++ b/bazarr/api/movies/movies_subtitles.py @@ -36,7 +36,7 @@ class MoviesSubtitles(Resource): @api_ns_movies_subtitles.response(204, 'Success') @api_ns_movies_subtitles.response(401, 'Not Authenticated') @api_ns_movies_subtitles.response(404, 'Movie not found') - @api_ns_movies_subtitles.response(409, 'Unable to save subtitles file. Permission of path mapping issue?') + @api_ns_movies_subtitles.response(409, 'Unable to save subtitles file. Permission or path mapping issue?') @api_ns_movies_subtitles.response(410, 'Movie file not found. Path mapping issue?') def patch(self): """Download a movie subtitles""" @@ -84,7 +84,7 @@ class MoviesSubtitles(Resource): else: event_stream(type='movie', payload=radarrId) except OSError: - return 'Unable to save subtitles file. Permission of path mapping issue?', 409 + return 'Unable to save subtitles file. Permission or path mapping issue?', 409 else: return '', 204 @@ -102,7 +102,7 @@ class MoviesSubtitles(Resource): @api_ns_movies_subtitles.response(204, 'Success') @api_ns_movies_subtitles.response(401, 'Not Authenticated') @api_ns_movies_subtitles.response(404, 'Movie not found') - @api_ns_movies_subtitles.response(409, 'Unable to save subtitles file. Permission of path mapping issue?') + @api_ns_movies_subtitles.response(409, 'Unable to save subtitles file. Permission or path mapping issue?') @api_ns_movies_subtitles.response(410, 'Movie file not found. Path mapping issue?') def post(self): """Upload a movie subtitles""" @@ -157,7 +157,7 @@ class MoviesSubtitles(Resource): send_notifications_movie(radarrId, result.message) store_subtitles_movie(result.path, moviePath) except OSError: - return 'Unable to save subtitles file. Permission of path mapping issue?', 409 + return 'Unable to save subtitles file. Permission or path mapping issue?', 409 else: return '', 204