[iprima] Improve video id extraction (#26507) (closes #26494)
authorSurkal <Surkal@users.noreply.github.com>
Wed, 23 Sep 2020 23:46:58 +0000 (01:46 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Sep 2020 23:46:58 +0000 (06:46 +0700)
youtube_dl/extractor/iprima.py

index 53a550c11e4407813deb12f646a0c714436862b5..648ae6741f11f27ae297aed06f41b0584972b395 100644 (file)
@@ -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(