Skip to content

Commit

Permalink
svt: Readd videoSvtId RE to fix some pages
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Aug 27, 2023
1 parent 11d5947 commit 65f16c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yt_dlp/extractor/svt.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ def _real_extract(self, url):
svt_id = self._search_regex(
(r'<video[^>]+data-video-id=["\']([\da-zA-Z-]+)',
r'<[^>]+\bdata-rt=["\']top-area-play-button["\'][^>]+\bhref=["\'][^"\']*video/[\w-]+/[^"\']*\b(?:modalId|id)=([\w-]+)',
r'["\']videoSvtId\\?["\']\s*:\s*\\?["\']([\da-zA-Z-]+)',
r'"content"\s*:\s*{.*?"id"\s*:\s*"([\da-zA-Z-]+)"'),
webpage, 'video id')

Expand Down

0 comments on commit 65f16c0

Please sign in to comment.