diff options
author | morpheus65535 <[email protected]> | 2022-12-05 09:58:22 -0500 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2022-12-05 09:58:22 -0500 |
commit | e6cab17a2942360cac30784775db2f4fd16afaa6 (patch) | |
tree | 27daa19b76b1b2d977112b69e72916f6880aad15 | |
parent | 01557cbfbf2377bc331964bda788ec759ad26c6f (diff) | |
download | bazarr-e6cab17a2942360cac30784775db2f4fd16afaa6.tar.gz bazarr-e6cab17a2942360cac30784775db2f4fd16afaa6.zip |
Fixed some edge case where no media could be found in db with a specific path. #2003v1.1.4-beta.0
-rw-r--r-- | bazarr/subtitles/download.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bazarr/subtitles/download.py b/bazarr/subtitles/download.py index f5a4b1edd..bc871db22 100644 --- a/bazarr/subtitles/download.py +++ b/bazarr/subtitles/download.py @@ -174,7 +174,10 @@ def check_missing_languages(path, media_type): .get_or_none() if not confirmed_missing_subs: - return None + reversed_path = path_mappings.path_replace_reverse(path) if media_type == 'series' else \ + path_mappings.path_replace_reverse_movie(path) + logging.debug(f"BAZARR no media with this path have been found in database: {reversed_path}") + return [] languages = [] for language in ast.literal_eval(confirmed_missing_subs['missing_subtitles']): |