mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 05:56:37 +00:00
Check that the drop_key exists
This commit is contained in:
parent
7b8d11791d
commit
c7457e94ac
@ -226,6 +226,7 @@ def filter_response(response_dict):
|
|||||||
if key in response_dict.keys():
|
if key in response_dict.keys():
|
||||||
for format in response_dict[key]:
|
for format in response_dict[key]:
|
||||||
for drop_key in drop_keys:
|
for drop_key in drop_keys:
|
||||||
|
if drop_key in format.keys():
|
||||||
del format[drop_key]
|
del format[drop_key]
|
||||||
# end of formats cleanup }}}
|
# end of formats cleanup }}}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user