projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
181cf24
)
[schooltv] Improve video id regex
author
Sergey M․
<dstftw@gmail.com>
Sat, 30 Jan 2016 22:41:18 +0000
(
04:41
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 30 Jan 2016 22:41:18 +0000
(
04:41
+0600)
youtube_dl/extractor/npo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/npo.py
b/youtube_dl/extractor/npo.py
index a4363c16efddd1212abfcf675ed026db87f61617..87f5675c7ff8b14169291420feb9bcf85edf894d 100644
(file)
--- 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',