mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-14 04:05:16 +00:00
Remove callables when writing --write-info-json
This commit is contained in:
@@ -3697,6 +3697,8 @@ class YoutubeDL:
|
|||||||
return list(map(filter_fn, obj))
|
return list(map(filter_fn, obj))
|
||||||
elif obj is None or isinstance(obj, (str, int, float, bool)):
|
elif obj is None or isinstance(obj, (str, int, float, bool)):
|
||||||
return obj
|
return obj
|
||||||
|
elif callable(obj):
|
||||||
|
return None
|
||||||
else:
|
else:
|
||||||
return repr(obj)
|
return repr(obj)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user