Browse Source

[schooltv] Improve video id regex

totalwebcasting
Sergey M․ 9 years ago
parent
commit
673fb82e65
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/npo.py

+ 2
- 1
youtube_dl/extractor/npo.py View File

@ -428,7 +428,8 @@ class SchoolTVIE(InfoExtractor):
def _real_extract(self, url): 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._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 { return {
'_type': 'url_transparent', '_type': 'url_transparent',
'ie_key': 'NPO', 'ie_key': 'NPO',


Loading…
Cancel
Save