mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 14:06:36 +00:00
Add ytopts
These are all optimizations: - `writethumbnail`: for EmbedThumbnail to use - `check_formats`: to save requests - `overwrites`: to keep the first version of the video - sleep intervals to slow down our tasks only for video downloads
This commit is contained in:
parent
152f88e7e7
commit
3822c1a4f2
@ -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', {})
|
||||
|
Loading…
Reference in New Issue
Block a user