1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-25 17:17:12 +00:00

Fixed subtitles upgrade job trying to upgrade null scored subtitles (part 2). #1909

This commit is contained in:
morpheus65535 2022-07-28 08:40:13 -04:00
parent 0d12bcb39e
commit ba1687a478

View file

@ -86,7 +86,7 @@ def upgrade_subtitles():
if settings.general.getboolean('use_radarr'): if settings.general.getboolean('use_radarr'):
upgradable_movies_conditions = [(TableHistoryMovie.action << query_actions), upgradable_movies_conditions = [(TableHistoryMovie.action << query_actions),
(TableHistoryMovie.timestamp > minimum_timestamp), (TableHistoryMovie.timestamp > minimum_timestamp),
(TableHistoryMovie.score is not None)] (TableHistoryMovie.score.is_null(False))]
upgradable_movies_conditions += get_exclusion_clause('movie') upgradable_movies_conditions += get_exclusion_clause('movie')
upgradable_movies = TableHistoryMovie.select(TableHistoryMovie.video_path, upgradable_movies = TableHistoryMovie.select(TableHistoryMovie.video_path,
TableHistoryMovie.language, TableHistoryMovie.language,