aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2016-02-03 13:24:07 +0100
committerremitamine <remitamine@gmail.com>2016-02-03 13:24:07 +0100
commitd577c79632e96e900f8ff5b89c98c3e60475d4b0 (patch)
tree1a0c24e646b7b46e3d4cdecacd684c11f1ab62f1
parentf14be228164a2da299d64e18f9081330d1104106 (diff)
downloadyoutube-dl-d577c79632e96e900f8ff5b89c98c3e60475d4b0.tar.xz
[common] ignore ISO 639-2 generic codes
-rw-r--r--youtube_dl/extractor/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index caca32d06..ee0e3d8d1 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -1426,6 +1426,7 @@ class InfoExtractor(object):
if not re.match(r'^https?://', base_url):
base_url = mpd_base_url + base_url
representation_id = representation_attrib.get('id')
+ lang = representation_attrib.get('lang')
f = {
'format_id': mpd_id or representation_id,
'url': base_url,
@@ -1436,7 +1437,7 @@ class InfoExtractor(object):
'fps': int_or_none(representation_attrib.get('frameRate')),
'vcodec': 'none' if content_type == 'audio' else representation_attrib.get('codecs'),
'acodec': 'none' if content_type == 'video' else representation_attrib.get('codecs'),
- 'language': representation_attrib.get('lang'),
+ 'language': lang if lang not in ('mul', 'und', 'zxx', 'mis') else None,
'format_note': 'DASH %s' % content_type,
}
representation_ms_info = extract_multisegment_info(representation, adaption_set_ms_info)