logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 0c92f1e96b004fc7a04eac0759f115a535c8e03a
parent adae9e844b0a40bf686a142a20c7ca30e4e1145b
Author: Surkal <Surkal@users.noreply.github.com>
Date:   Thu, 24 Sep 2020 01:46:58 +0200

[iprima] Improve video id extraction (#26507) (closes #26494)


Diffstat:

Myoutube_dl/extractor/iprima.py3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/iprima.py b/youtube_dl/extractor/iprima.py @@ -86,7 +86,8 @@ class IPrimaIE(InfoExtractor): (r'<iframe[^>]+\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(