mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 04:10:23 +00:00
[tvplayhome] Fix video id extraction (closes #19190)
This commit is contained in:
parent
d777f3e81c
commit
7d8b89163c
@ -493,10 +493,9 @@ def _real_extract(self, url):
|
|||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
video_id = self._search_regex(
|
video_id = self._search_regex(
|
||||||
r'data-asset-id\s*=\s*["\'](\d{5,7})\b', webpage, 'video id',
|
r'data-asset-id\s*=\s*["\'](\d{5,})\b', webpage, 'video id')
|
||||||
default=None)
|
|
||||||
|
|
||||||
if video_id:
|
if len(video_id) < 8:
|
||||||
return self.url_result(
|
return self.url_result(
|
||||||
'mtg:%s' % video_id, ie=TVPlayIE.ie_key(), video_id=video_id)
|
'mtg:%s' % video_id, ie=TVPlayIE.ie_key(), video_id=video_id)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user