From 444a763e50c16692cbfff424c893881a0b033008 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu@web.de> Date: Sun, 12 Apr 2020 11:33:55 +0200 Subject: [PATCH] [tele5] Undo some reorderings --- youtube_dl/extractor/tele5.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/tele5.py b/youtube_dl/extractor/tele5.py index 166db2c5c..67a7a286e 100644 --- a/youtube_dl/extractor/tele5.py +++ b/youtube_dl/extractor/tele5.py @@ -91,16 +91,16 @@ class Tele5IE(InfoExtractor): r'\bdata-id\s*=\s*["\'](%s)' % pattern), webpage, name, 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) if nexx_id: return nexx_result(nexx_id) + if not jwplatform_id: + jwplatform_id = extract_id(JWPLATFORM_ID_RE, 'jwplatform id') + media = self._download_json( 'https://cdn.jwplayer.com/v2/media/' + jwplatform_id, display_id) - nexx_id = try_get( media, lambda x: x['playlist'][0]['nexx_id'], compat_str)