Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ralf
youtube-dl
Commits
95c98100
Unverified
Commit
95c98100
authored
Sep 13, 2020
by
Sergey M․
Browse files
[svtplay] Fix id extraction (closes #26576)
parent
b03eebdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
youtube_dl/extractor/svt.py
View file @
95c98100
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment