stop generating channel json/thumb when queued.

This commit is contained in:
ArabCoders 2023-12-29 14:10:43 +03:00
parent 8574eec09a
commit 47173cf37e

View file

@ -171,6 +171,11 @@ def ExtractInfo(config: dict, url: str, debug: bool = False) -> dict:
**config,
}
# Remove keys that are not needed for info extraction as those keys generate files when used with extract_info.
for key in ('writeinfojson', 'writethumbnail', 'writedescription', 'writeautomaticsub'):
if key in params:
del params[key]
if debug:
params['verbose'] = True
params['logger'] = logging.getLogger('YTPTube-ytdl')