use isSubtitles to check if subtitle layer exists
This commit is contained in:
parent
55e47c36bd
commit
21db208556
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ def update(request, data):
|
|||
file__available=False,
|
||||
file__wanted=True)]
|
||||
|
||||
if list(filter(lambda l: l['id'] == 'subtitles', settings.CONFIG['layers'])):
|
||||
if utils.get_by_key(settings.CONFIG['layers'], 'isSubtitles', True):
|
||||
qs = files.filter(
|
||||
file__is_subtitle=True,
|
||||
file__available=False
|
||||
|
|
Loading…
Reference in a new issue