Skip to content

Commit

Permalink
[iprima] Improve video id extraction (ytdl-org#26507) (closes ytdl-or…
Browse files Browse the repository at this point in the history
  • Loading branch information
Surkal authored Sep 23, 2020
1 parent adae9e8 commit 0c92f1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion youtube_dl/extractor/iprima.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def _real_extract(self, url):
(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(
Expand Down

0 comments on commit 0c92f1e

Please sign in to comment.