Unverified Commit 95c98100 authored by Sergey M․'s avatar Sergey M․
Browse files

[svtplay] Fix id extraction (closes #26576)

parent b03eebdb
...@@ -231,7 +231,9 @@ class SVTPlayIE(SVTPlayBaseIE): ...@@ -231,7 +231,9 @@ class SVTPlayIE(SVTPlayBaseIE):
if not svt_id: if not svt_id:
svt_id = self._search_regex( svt_id = self._search_regex(
(r'<video[^>]+data-video-id=["\']([\da-zA-Z-]+)', (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-]+)',
webpage, 'video id') webpage, 'video id')
return self._extract_by_video_id(svt_id, webpage) return self._extract_by_video_id(svt_id, webpage)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment