Skip to content

Commit

Permalink
[svtplay] Fix id extraction (closes #26576)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Sep 13, 2020
1 parent b03eebd commit 95c9810
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion youtube_dl/extractor/svt.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ def _real_extract(self, url):
if not svt_id:
svt_id = self._search_regex(
(r'<video[^>]+data-video-id=["\']([\da-zA-Z-]+)',
r'"content"\s*:\s*{.*?"id"\s*:\s*"([\da-zA-Z-]+)"'),
r'["\']videoSvtId["\']\s*:\s*["\']([\da-zA-Z-]+)',
r'"content"\s*:\s*{.*?"id"\s*:\s*"([\da-zA-Z-]+)"',
r'["\']svtId["\']\s*:\s*["\']([\da-zA-Z-]+)'),
webpage, 'video id')

return self._extract_by_video_id(svt_id, webpage)
Expand Down

0 comments on commit 95c9810

Please sign in to comment.