logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 95c98100155589e224c76fddb3d01dae0bd233ac
parent b03eebdb6aab0f778293ed298543083b6ae76963
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sun, 13 Sep 2020 18:59:37 +0700

[svtplay] Fix id extraction (closes #26576)

Diffstat:

Myoutube_dl/extractor/svt.py4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/svt.py b/youtube_dl/extractor/svt.py @@ -231,7 +231,9 @@ class SVTPlayIE(SVTPlayBaseIE): 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)