mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-29 19:15:56 +00:00
Fixed some edge case where no media could be found in db with a specific path. #2003
This commit is contained in:
parent
01557cbfbf
commit
e6cab17a29
1 changed files with 4 additions and 1 deletions
|
@ -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']):
|
||||
|
|
Loading…
Reference in a new issue