summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2022-02-11 12:57:46 -0500
committermorpheus65535 <[email protected]>2022-02-11 12:57:46 -0500
commitfc48bbfdda865b4b119186501695436ac5cdccb9 (patch)
tree878a8f29f150cdd3cf1e7044b8ede5944a564f6a
parent026eba9b13e9683f5813ae99cbcf52d868e36079 (diff)
downloadbazarr-fc48bbfdda865b4b119186501695436ac5cdccb9.tar.gz
bazarr-fc48bbfdda865b4b119186501695436ac5cdccb9.zip
no log: fixed last commit http code returned by API.
-rw-r--r--bazarr/api/episodes/blacklist.py2
-rw-r--r--bazarr/api/episodes/episodes_subtitles.py6
-rw-r--r--bazarr/api/movies/blacklist.py2
-rw-r--r--bazarr/api/movies/movies_subtitles.py6
-rw-r--r--bazarr/api/providers/providers_episodes.py4
-rw-r--r--bazarr/api/providers/providers_movies.py4
-rw-r--r--bazarr/api/subtitles/subtitles.py4
7 files changed, 14 insertions, 14 deletions
diff --git a/bazarr/api/episodes/blacklist.py b/bazarr/api/episodes/blacklist.py
index d519eaabd..6d0471582 100644
--- a/bazarr/api/episodes/blacklist.py
+++ b/bazarr/api/episodes/blacklist.py
@@ -62,7 +62,7 @@ class EpisodesBlacklist(Resource):
.get_or_none()
if not episodeInfo:
- return 'Episode not found', 501
+ return 'Episode not found', 500
media_path = episodeInfo['path']
subtitles_path = request.form.get('subtitles_path')
diff --git a/bazarr/api/episodes/episodes_subtitles.py b/bazarr/api/episodes/episodes_subtitles.py
index 9165b9ee3..d055a1a45 100644
--- a/bazarr/api/episodes/episodes_subtitles.py
+++ b/bazarr/api/episodes/episodes_subtitles.py
@@ -37,7 +37,7 @@ class EpisodesSubtitles(Resource):
.get_or_none()
if not episodeInfo:
- return 'Episode not found', 501
+ return 'Episode not found', 500
title = episodeInfo['title']
episodePath = path_mappings.path_replace(episodeInfo['path'])
@@ -96,7 +96,7 @@ class EpisodesSubtitles(Resource):
.get_or_none()
if not episodeInfo:
- return 'Episode not found', 501
+ return 'Episode not found', 500
title = episodeInfo['title']
episodePath = path_mappings.path_replace(episodeInfo['path'])
@@ -162,7 +162,7 @@ class EpisodesSubtitles(Resource):
.get_or_none()
if not episodeInfo:
- return 'Episode not found', 501
+ return 'Episode not found', 500
episodePath = path_mappings.path_replace(episodeInfo['path'])
diff --git a/bazarr/api/movies/blacklist.py b/bazarr/api/movies/blacklist.py
index 0538fe437..15a70d15e 100644
--- a/bazarr/api/movies/blacklist.py
+++ b/bazarr/api/movies/blacklist.py
@@ -58,7 +58,7 @@ class MoviesBlacklist(Resource):
data = TableMovies.select(TableMovies.path).where(TableMovies.radarrId == radarr_id).dicts().get_or_none()
if not data:
- return 'Movie not found', 501
+ return 'Movie not found', 500
media_path = data['path']
subtitles_path = request.form.get('subtitles_path')
diff --git a/bazarr/api/movies/movies_subtitles.py b/bazarr/api/movies/movies_subtitles.py
index 7d84ab44d..a13edf9dd 100644
--- a/bazarr/api/movies/movies_subtitles.py
+++ b/bazarr/api/movies/movies_subtitles.py
@@ -37,7 +37,7 @@ class MoviesSubtitles(Resource):
.get_or_none()
if not movieInfo:
- return 'Movie not found', 501
+ return 'Movie not found', 500
moviePath = path_mappings.path_replace_movie(movieInfo['path'])
sceneName = movieInfo['sceneName'] or 'None'
@@ -97,7 +97,7 @@ class MoviesSubtitles(Resource):
.get_or_none()
if not movieInfo:
- return 'Movie not found', 501
+ return 'Movie not found', 500
moviePath = path_mappings.path_replace_movie(movieInfo['path'])
sceneName = movieInfo['sceneName'] or 'None'
@@ -159,7 +159,7 @@ class MoviesSubtitles(Resource):
.get_or_none()
if not movieInfo:
- return 'Movie not found', 501
+ return 'Movie not found', 500
moviePath = path_mappings.path_replace_movie(movieInfo['path'])
diff --git a/bazarr/api/providers/providers_episodes.py b/bazarr/api/providers/providers_episodes.py
index 1555e4017..e4834fb3f 100644
--- a/bazarr/api/providers/providers_episodes.py
+++ b/bazarr/api/providers/providers_episodes.py
@@ -30,7 +30,7 @@ class ProviderEpisodes(Resource):
.get_or_none()
if not episodeInfo:
- return 'Episode not found', 501
+ return 'Episode not found', 500
title = episodeInfo['title']
episodePath = path_mappings.path_replace(episodeInfo['path'])
@@ -58,7 +58,7 @@ class ProviderEpisodes(Resource):
.get_or_none()
if not episodeInfo:
- return 'Episode not found', 501
+ return 'Episode not found', 500
title = episodeInfo['title']
episodePath = path_mappings.path_replace(episodeInfo['path'])
diff --git a/bazarr/api/providers/providers_movies.py b/bazarr/api/providers/providers_movies.py
index 575148aa2..3c5b714a1 100644
--- a/bazarr/api/providers/providers_movies.py
+++ b/bazarr/api/providers/providers_movies.py
@@ -29,7 +29,7 @@ class ProviderMovies(Resource):
.get_or_none()
if not movieInfo:
- return 'Movie not found', 501
+ return 'Movie not found', 500
title = movieInfo['title']
moviePath = path_mappings.path_replace_movie(movieInfo['path'])
@@ -56,7 +56,7 @@ class ProviderMovies(Resource):
.get_or_none()
if not movieInfo:
- return 'Movie not found', 501
+ return 'Movie not found', 500
title = movieInfo['title']
moviePath = path_mappings.path_replace_movie(movieInfo['path'])
diff --git a/bazarr/api/subtitles/subtitles.py b/bazarr/api/subtitles/subtitles.py
index 8c26e1bfc..f4b7657ad 100644
--- a/bazarr/api/subtitles/subtitles.py
+++ b/bazarr/api/subtitles/subtitles.py
@@ -33,7 +33,7 @@ class Subtitles(Resource):
.get_or_none()
if not metadata:
- return 'Episode not found', 501
+ return 'Episode not found', 500
video_path = path_mappings.path_replace(metadata['path'])
else:
@@ -41,7 +41,7 @@ class Subtitles(Resource):
metadata = TableMovies.select(TableMovies.path).where(TableMovies.radarrId == id).dicts().get_or_none()
if not metadata:
- return 'Movie not found', 501
+ return 'Movie not found', 500
video_path = path_mappings.path_replace_movie(metadata['path'])