stop generating channel json/thumb when queued.
This commit is contained in:
parent
8574eec09a
commit
47173cf37e
1 changed files with 5 additions and 0 deletions
|
|
@ -171,6 +171,11 @@ def ExtractInfo(config: dict, url: str, debug: bool = False) -> dict:
|
||||||
**config,
|
**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:
|
if debug:
|
||||||
params['verbose'] = True
|
params['verbose'] = True
|
||||||
params['logger'] = logging.getLogger('YTPTube-ytdl')
|
params['logger'] = logging.getLogger('YTPTube-ytdl')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue