diff options
-rw-r--r-- | bazarr/api/episodes/blacklist.py | 2 | ||||
-rw-r--r-- | bazarr/api/episodes/episodes_subtitles.py | 6 | ||||
-rw-r--r-- | bazarr/api/movies/blacklist.py | 2 | ||||
-rw-r--r-- | bazarr/api/movies/movies_subtitles.py | 6 | ||||
-rw-r--r-- | bazarr/api/providers/providers_episodes.py | 4 | ||||
-rw-r--r-- | bazarr/api/providers/providers_movies.py | 4 | ||||
-rw-r--r-- | bazarr/api/subtitles/subtitles.py | 4 |
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']) |