no log: fix typo on last commit

This commit is contained in:
morpheus65535 2023-08-29 20:13:38 -04:00
parent 995ae1b5b8
commit 79f5c7d675
2 changed files with 8 additions and 8 deletions

View File

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

View File

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