Merge pull request #664 from tcely/patch-6

Add `ytopts`
This commit is contained in:
meeb 2025-01-30 14:08:38 +11:00 committed by GitHub
commit 58bd4c314a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -243,6 +243,12 @@ def download_media(url, media_format, extension, output_file, info_json,
'writesubtitles': write_subtitles,
'writeautomaticsub': auto_subtitles,
'subtitleslangs': sub_langs.split(','),
'writethumbnail': True,
'check_formats': False,
'overwrites': None,
'sleep_interval': 30,
'max_sleep_interval': 600,
'sleep_interval_requests': 30,
}
opts = get_yt_opts()
ytopts['paths'] = opts.get('paths', {})