|
|
@ -112,18 +112,19 @@ class URPlayIE(InfoExtractor):
|
|
|
|
lang = ISO639Utils.short2long(lang)
|
|
|
|
lang = ISO639Utils.short2long(lang)
|
|
|
|
return lang or None
|
|
|
|
return lang or None
|
|
|
|
|
|
|
|
|
|
|
|
for k, v in (urplayer_data['streamingInfo'].get('sweComplete') or {}).items():
|
|
|
|
for stream in urplayer_data['streamingInfo'].values():
|
|
|
|
if (k in ('sd', 'hd') or not isinstance(v, dict)):
|
|
|
|
for k, v in stream.items():
|
|
|
|
continue
|
|
|
|
if (k in ('sd', 'hd') or not isinstance(v, dict)):
|
|
|
|
lang, sttl_url = (v.get(kk) for kk in ('language', 'location', ))
|
|
|
|
continue
|
|
|
|
if not sttl_url:
|
|
|
|
lang, sttl_url = (v.get(kk) for kk in ('language', 'location', ))
|
|
|
|
continue
|
|
|
|
if not sttl_url:
|
|
|
|
lang = parse_lang_code(lang)
|
|
|
|
continue
|
|
|
|
if not lang:
|
|
|
|
lang = parse_lang_code(lang)
|
|
|
|
continue
|
|
|
|
if not lang:
|
|
|
|
sttl = subtitles.get(lang) or []
|
|
|
|
continue
|
|
|
|
sttl.append({'ext': k, 'url': sttl_url, })
|
|
|
|
sttl = subtitles.get(lang) or []
|
|
|
|
subtitles[lang] = sttl
|
|
|
|
sttl.append({'ext': k, 'url': sttl_url, })
|
|
|
|
|
|
|
|
subtitles[lang] = sttl
|
|
|
|
|
|
|
|
|
|
|
|
image = urplayer_data.get('image') or {}
|
|
|
|
image = urplayer_data.get('image') or {}
|
|
|
|
thumbnails = []
|
|
|
|
thumbnails = []
|
|
|
|