mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-10 04:43:21 +08:00
[tele5] Undo some reorderings
This commit is contained in:
parent
d0dd97a0c1
commit
444a763e50
@ -91,16 +91,16 @@ class Tele5IE(InfoExtractor):
|
|||||||
r'\bdata-id\s*=\s*["\'](%s)' % pattern), webpage, name,
|
r'\bdata-id\s*=\s*["\'](%s)' % pattern), webpage, name,
|
||||||
default=default)
|
default=default)
|
||||||
|
|
||||||
if not jwplatform_id:
|
|
||||||
jwplatform_id = extract_id(JWPLATFORM_ID_RE, 'jwplatform id')
|
|
||||||
nexx_id = extract_id(NEXX_ID_RE, 'nexx id', default=None)
|
nexx_id = extract_id(NEXX_ID_RE, 'nexx id', default=None)
|
||||||
if nexx_id:
|
if nexx_id:
|
||||||
return nexx_result(nexx_id)
|
return nexx_result(nexx_id)
|
||||||
|
|
||||||
|
if not jwplatform_id:
|
||||||
|
jwplatform_id = extract_id(JWPLATFORM_ID_RE, 'jwplatform id')
|
||||||
|
|
||||||
media = self._download_json(
|
media = self._download_json(
|
||||||
'https://cdn.jwplayer.com/v2/media/' + jwplatform_id,
|
'https://cdn.jwplayer.com/v2/media/' + jwplatform_id,
|
||||||
display_id)
|
display_id)
|
||||||
|
|
||||||
nexx_id = try_get(
|
nexx_id = try_get(
|
||||||
media, lambda x: x['playlist'][0]['nexx_id'], compat_str)
|
media, lambda x: x['playlist'][0]['nexx_id'], compat_str)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user