mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-01-04 12:35:48 +01:00
[options] Refactor callbacks
This commit is contained in:
parent
0760b0a7e2
commit
e632bce2e4
2 changed files with 17 additions and 14 deletions
|
|
@ -2179,6 +2179,7 @@ class YoutubeDL(object):
|
|||
requested_langs = ['en']
|
||||
else:
|
||||
requested_langs = [list(all_sub_langs)[0]]
|
||||
self.write_debug('Downloading subtitles: %s' % ', '.join(requested_langs))
|
||||
|
||||
formats_query = self.params.get('subtitlesformat', 'best')
|
||||
formats_preference = formats_query.split('/') if formats_query else []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue