youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 673fb82e65e28935ad16d85771cefe15013a12bd
parent 181cf24bc0e011138d94a3431166f77fb01d2c3c
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sun, 31 Jan 2016 04:41:18 +0600

[schooltv] Improve video id regex

Diffstat:
Myoutube_dl/extractor/npo.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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',