From: Surkal Date: Wed, 23 Sep 2020 23:46:58 +0000 (+0200) Subject: [iprima] Improve video id extraction (#26507) (closes #26494) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=0c92f1e96b004fc7a04eac0759f115a535c8e03a;p=youtube-dl [iprima] Improve video id extraction (#26507) (closes #26494) --- diff --git a/youtube_dl/extractor/iprima.py b/youtube_dl/extractor/iprima.py index 53a550c11..648ae6741 100644 --- a/youtube_dl/extractor/iprima.py +++ b/youtube_dl/extractor/iprima.py @@ -86,7 +86,8 @@ class IPrimaIE(InfoExtractor): (r']+\bsrc=["\'](?:https?:)?//(?:api\.play-backend\.iprima\.cz/prehravac/embedded|prima\.iprima\.cz/[^/]+/[^/]+)\?.*?\bid=(p\d+)', r'data-product="([^"]+)">', r'id=["\']player-(p\d+)"', - r'playerId\s*:\s*["\']player-(p\d+)'), + r'playerId\s*:\s*["\']player-(p\d+)', + r'\bvideos\s*=\s*["\'](p\d+)'), webpage, 'real id') playerpage = self._download_webpage(