aboutsummaryrefslogtreecommitdiff
path: root/youtube_dlc/extractor/svt.py
diff options
context:
space:
mode:
authorUnknown <blackjack4494@web.de>2020-09-14 12:50:56 +0200
committerUnknown <blackjack4494@web.de>2020-09-14 12:50:56 +0200
commite69dd7809034c0bec432438e2aa96b70fdea8294 (patch)
tree1c26923c100d36910a66dd9c8ee3897d7e8e8fc7 /youtube_dlc/extractor/svt.py
parent0e0b56a2909f3c7191b6d276c1e751c94d6faafe (diff)
parente8c5d40bc840b9e3ec8b4e8070291a64a4fa75b2 (diff)
merge ytdl-master
Diffstat (limited to 'youtube_dlc/extractor/svt.py')
-rw-r--r--youtube_dlc/extractor/svt.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dlc/extractor/svt.py b/youtube_dlc/extractor/svt.py
index 8e9ec2ca3..2f6887d86 100644
--- a/youtube_dlc/extractor/svt.py
+++ b/youtube_dlc/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)