projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
536b070
)
[vpro] Improve playlist extraction
author
Sergey M․
<dstftw@gmail.com>
Thu, 16 Jul 2015 18:53:12 +0000
(
00:53
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 16 Jul 2015 18:53:12 +0000
(
00:53
+0600)
youtube_dl/extractor/npo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/npo.py
b/youtube_dl/extractor/npo.py
index e733d96f6fdcdac7e8e3b4aaa07e0d570b64ce3f..583ed3e142ddd5e3aaf012b0b5a28c24a3c7046f 100644
(file)
--- a/
youtube_dl/extractor/npo.py
+++ b/
youtube_dl/extractor/npo.py
@@
-428,6
+428,15
@@
class VPROIE(NPOIE):
'title': 'Sergio Herman: Fucking perfect',
},
'playlist_count': 2,
'title': 'Sergio Herman: Fucking perfect',
},
'playlist_count': 2,
+ },
+ {
+ # playlist with youtube embed
+ 'url': 'http://www.vpro.nl/programmas/2doc/2015/education-education.html',
+ 'info_dict': {
+ 'id': 'education-education',
+ 'title': '2Doc',
+ },
+ 'playlist_count': 2,
}
]
}
]
@@
-437,7
+446,7
@@
class VPROIE(NPOIE):
webpage = self._download_webpage(url, playlist_id)
entries = [
webpage = self._download_webpage(url, playlist_id)
entries = [
- self.url_result('npo:%s' % video_id
, 'NPO'
)
+ self.url_result('npo:%s' % video_id
if not video_id.startswith('http') else video_id
)
for video_id in re.findall(r'data-media-id="([^"]+)"', webpage)
]
for video_id in re.findall(r'data-media-id="([^"]+)"', webpage)
]