mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-23 22:27:17 -04:00
Fixed another issue with subtitles upgrade process.
This commit is contained in:
parent
a4cfb0077b
commit
56d8f2c9a3
3 changed files with 4 additions and 4 deletions
|
@ -129,7 +129,7 @@ class EpisodesHistory(Resource):
|
|||
'provider': x.provider,
|
||||
'matches': x.matched,
|
||||
'dont_matches': x.not_matched,
|
||||
'external_subtitles': [ast.literal_eval(f'"{y[1]}"') for y in ast.literal_eval(x.external_subtitles) if y[1]],
|
||||
'external_subtitles': [y[1] for y in ast.literal_eval(x.external_subtitles) if y[1]],
|
||||
'upgradable': bool(x.upgradable) if _language_still_desired(x.language, x.profileId) else False,
|
||||
'blacklisted': bool(x.blacklisted),
|
||||
} for x in database.execute(stmt).all()]
|
||||
|
|
|
@ -120,7 +120,7 @@ class MoviesHistory(Resource):
|
|||
'video_path': x.video_path,
|
||||
'matches': x.matched,
|
||||
'dont_matches': x.not_matched,
|
||||
'external_subtitles': [ast.literal_eval(f'"{y[1]}"') for y in ast.literal_eval(x.external_subtitles) if y[1]],
|
||||
'external_subtitles': [y[1] for y in ast.literal_eval(x.external_subtitles) if y[1]],
|
||||
'upgradable': bool(x.upgradable) if _language_still_desired(x.language, x.profileId) else False,
|
||||
'blacklisted': bool(x.blacklisted),
|
||||
} for x in database.execute(stmt).all()]
|
||||
|
|
|
@ -45,7 +45,7 @@ def upgrade_subtitles():
|
|||
'subtitles_path': x.subtitles_path,
|
||||
'path': x.path,
|
||||
'profileId': x.profileId,
|
||||
'external_subtitles': [ast.literal_eval(f'"{y[1]}"') for y in ast.literal_eval(x.external_subtitles) if y[1]],
|
||||
'external_subtitles': [y[1] for y in ast.literal_eval(x.external_subtitles) if y[1]],
|
||||
'upgradable': bool(x.upgradable),
|
||||
} for x in database.execute(
|
||||
select(TableHistory.id,
|
||||
|
@ -142,7 +142,7 @@ def upgrade_subtitles():
|
|||
'path': x.path,
|
||||
'profileId': x.profileId,
|
||||
'subtitles_path': x.subtitles_path,
|
||||
'external_subtitles': [ast.literal_eval(f'"{y[1]}"') for y in ast.literal_eval(x.external_subtitles) if y[1]],
|
||||
'external_subtitles': [y[1] for y in ast.literal_eval(x.external_subtitles) if y[1]],
|
||||
'upgradable': bool(x.upgradable),
|
||||
} for x in database.execute(
|
||||
select(TableMovies.title,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue