Check that the drop_key exists

This commit is contained in:
tcely 2025-01-07 05:58:50 -05:00 committed by GitHub
parent 7b8d11791d
commit c7457e94ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -226,7 +226,8 @@ def filter_response(response_dict):
if key in response_dict.keys():
for format in response_dict[key]:
for drop_key in drop_keys:
del format[drop_key]
if drop_key in format.keys():
del format[drop_key]
# end of formats cleanup }}}
# beginning of subtitles cleanup {{{