mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-19 09:25:43 +00:00
[tele5] Improve video id extraction
This commit is contained in:
parent
0e0bfd334c
commit
a277dd33eb
@ -48,8 +48,9 @@ def _real_extract(self, url):
|
|||||||
display_id = self._match_id(url)
|
display_id = self._match_id(url)
|
||||||
webpage = self._download_webpage(url, display_id)
|
webpage = self._download_webpage(url, display_id)
|
||||||
video_id = self._html_search_regex(
|
video_id = self._html_search_regex(
|
||||||
r'id\s*=\s*["\']video-player["\'][^>]+data-id\s*=\s*["\'](\d+)',
|
(r'id\s*=\s*["\']video-player["\'][^>]+data-id\s*=\s*["\'](\d+)',
|
||||||
webpage, 'video id')
|
r'\s+id\s*=\s*["\']player_(\d{6,})',
|
||||||
|
r'\bdata-id\s*=\s*["\'](\d{6,})'), webpage, 'video id')
|
||||||
|
|
||||||
return self.url_result(
|
return self.url_result(
|
||||||
'https://api.nexx.cloud/v3/759/videos/byid/%s' % video_id,
|
'https://api.nexx.cloud/v3/759/videos/byid/%s' % video_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user