diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-01-31 04:41:18 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-01-31 04:41:18 +0600 |
commit | 673fb82e65e28935ad16d85771cefe15013a12bd (patch) | |
tree | 21beed3107814055b9d21840b0a45b911b493193 /youtube_dl/extractor | |
parent | 181cf24bc0e011138d94a3431166f77fb01d2c3c (diff) |
[schooltv] Improve video id regex
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/npo.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/npo.py b/youtube_dl/extractor/npo.py index a4363c16e..87f5675c7 100644 --- a/youtube_dl/extractor/npo.py +++ b/youtube_dl/extractor/npo.py @@ -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', |