mirror of https://github.com/morpheus65535/bazarr
no log: fix typo on last commit
This commit is contained in:
parent
995ae1b5b8
commit
79f5c7d675
|
@ -37,7 +37,7 @@ class EpisodesSubtitles(Resource):
|
||||||
@api_ns_episodes_subtitles.response(204, 'Success')
|
@api_ns_episodes_subtitles.response(204, 'Success')
|
||||||
@api_ns_episodes_subtitles.response(401, 'Not Authenticated')
|
@api_ns_episodes_subtitles.response(401, 'Not Authenticated')
|
||||||
@api_ns_episodes_subtitles.response(404, 'Episode not found')
|
@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?')
|
@api_ns_episodes_subtitles.response(410, 'Episode file not found. Path mapping issue?')
|
||||||
def patch(self):
|
def patch(self):
|
||||||
"""Download an episode subtitles"""
|
"""Download an episode subtitles"""
|
||||||
|
@ -87,7 +87,7 @@ class EpisodesSubtitles(Resource):
|
||||||
else:
|
else:
|
||||||
event_stream(type='episode', payload=sonarrEpisodeId)
|
event_stream(type='episode', payload=sonarrEpisodeId)
|
||||||
except OSError:
|
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:
|
else:
|
||||||
return '', 204
|
return '', 204
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ class EpisodesSubtitles(Resource):
|
||||||
@api_ns_episodes_subtitles.response(204, 'Success')
|
@api_ns_episodes_subtitles.response(204, 'Success')
|
||||||
@api_ns_episodes_subtitles.response(401, 'Not Authenticated')
|
@api_ns_episodes_subtitles.response(401, 'Not Authenticated')
|
||||||
@api_ns_episodes_subtitles.response(404, 'Episode not found')
|
@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?')
|
@api_ns_episodes_subtitles.response(410, 'Episode file not found. Path mapping issue?')
|
||||||
def post(self):
|
def post(self):
|
||||||
"""Upload an episode subtitles"""
|
"""Upload an episode subtitles"""
|
||||||
|
@ -161,7 +161,7 @@ class EpisodesSubtitles(Resource):
|
||||||
send_notifications(sonarrSeriesId, sonarrEpisodeId, result.message)
|
send_notifications(sonarrSeriesId, sonarrEpisodeId, result.message)
|
||||||
store_subtitles(result.path, episodePath)
|
store_subtitles(result.path, episodePath)
|
||||||
except OSError:
|
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:
|
else:
|
||||||
return '', 204
|
return '', 204
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ class MoviesSubtitles(Resource):
|
||||||
@api_ns_movies_subtitles.response(204, 'Success')
|
@api_ns_movies_subtitles.response(204, 'Success')
|
||||||
@api_ns_movies_subtitles.response(401, 'Not Authenticated')
|
@api_ns_movies_subtitles.response(401, 'Not Authenticated')
|
||||||
@api_ns_movies_subtitles.response(404, 'Movie not found')
|
@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?')
|
@api_ns_movies_subtitles.response(410, 'Movie file not found. Path mapping issue?')
|
||||||
def patch(self):
|
def patch(self):
|
||||||
"""Download a movie subtitles"""
|
"""Download a movie subtitles"""
|
||||||
|
@ -84,7 +84,7 @@ class MoviesSubtitles(Resource):
|
||||||
else:
|
else:
|
||||||
event_stream(type='movie', payload=radarrId)
|
event_stream(type='movie', payload=radarrId)
|
||||||
except OSError:
|
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:
|
else:
|
||||||
return '', 204
|
return '', 204
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ class MoviesSubtitles(Resource):
|
||||||
@api_ns_movies_subtitles.response(204, 'Success')
|
@api_ns_movies_subtitles.response(204, 'Success')
|
||||||
@api_ns_movies_subtitles.response(401, 'Not Authenticated')
|
@api_ns_movies_subtitles.response(401, 'Not Authenticated')
|
||||||
@api_ns_movies_subtitles.response(404, 'Movie not found')
|
@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?')
|
@api_ns_movies_subtitles.response(410, 'Movie file not found. Path mapping issue?')
|
||||||
def post(self):
|
def post(self):
|
||||||
"""Upload a movie subtitles"""
|
"""Upload a movie subtitles"""
|
||||||
|
@ -157,7 +157,7 @@ class MoviesSubtitles(Resource):
|
||||||
send_notifications_movie(radarrId, result.message)
|
send_notifications_movie(radarrId, result.message)
|
||||||
store_subtitles_movie(result.path, moviePath)
|
store_subtitles_movie(result.path, moviePath)
|
||||||
except OSError:
|
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:
|
else:
|
||||||
return '', 204
|
return '', 204
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue