1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 08:47:41 +00:00

[schooltv] Improve video id regex

This commit is contained in:
Sergey M․ 2016-01-31 04:41:18 +06:00
parent 181cf24bc0
commit 673fb82e65

View file

@ -428,7 +428,8 @@ class SchoolTVIE(InfoExtractor):
def _real_extract(self, url):
display_id = self._match_id(url)
webpage = self._download_webpage(url, display_id)
video_id = self._search_regex(r'data-mid="([^"]+)"', webpage, 'video_id')
video_id = self._search_regex(
r'data-mid=(["\'])(?P<id>.+?)\1', webpage, 'video_id', group='id')
return {
'_type': 'url_transparent',
'ie_key': 'NPO',