mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
parent
9d63137eac
commit
525d9e0c7d
1 changed files with 5 additions and 0 deletions
|
@ -230,6 +230,11 @@ def _real_extract(self, url):
|
|||
if tags and 'encryption:plain' not in tags:
|
||||
for f in current_formats:
|
||||
f['has_drm'] = True
|
||||
if tags and 'language' in tags:
|
||||
lang = re.search(r'language:(?P<lang>[a-z]+)', tags).group('lang')
|
||||
for f in current_formats:
|
||||
if not f.get('langauge'):
|
||||
f['language'] = lang
|
||||
formats.extend(current_formats)
|
||||
subs = self._merge_subtitles(subs, current_subs)
|
||||
if not formats and geo_restricted:
|
||||
|
|
Loading…
Reference in a new issue