aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/npo.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-09-25 22:03:18 +0700
committerSergey M․ <dstftw@gmail.com>2016-09-25 22:26:06 +0700
commitddb19772d572ae2118664a22d083a8f31fc63d8d (patch)
treef1475d3c0793763cb2cec8dfd9e2437cf9c731c5 /youtube_dl/extractor/npo.py
parenta3d8b3816802c76beffa48789eac5181e02db3dc (diff)
downloadyoutube-dl-ddb19772d572ae2118664a22d083a8f31fc63d8d.zip
youtube-dl-ddb19772d572ae2118664a22d083a8f31fc63d8d.tar.gz
youtube-dl-ddb19772d572ae2118664a22d083a8f31fc63d8d.tar.bz2
[vpro] Fix playlist title extraction and update tests
Diffstat (limited to 'youtube_dl/extractor/npo.py')
-rw-r--r--youtube_dl/extractor/npo.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/youtube_dl/extractor/npo.py b/youtube_dl/extractor/npo.py
index f95867d..ff02d03 100644
--- a/youtube_dl/extractor/npo.py
+++ b/youtube_dl/extractor/npo.py
@@ -459,7 +459,7 @@ class NPOPlaylistBaseIE(NPOIE):
class VPROIE(NPOPlaylistBaseIE):
IE_NAME = 'vpro'
_VALID_URL = r'https?://(?:www\.)?(?:tegenlicht\.)?vpro\.nl/(?:[^/]+/){2,}(?P<id>[^/]+)\.html'
- _PLAYLIST_TITLE_RE = r'<title>\s*([^>]+?)\s*-\s*Teledoc\s*-\s*VPRO\s*</title>'
+ _PLAYLIST_TITLE_RE = r'<h1[^>]+class=["\'].*?\bmedia-platform-title\b.*?["\'][^>]*>([^<]+)'
_PLAYLIST_ENTRY_RE = r'data-media-id="([^"]+)"'
_TESTS = [
@@ -473,12 +473,13 @@ class VPROIE(NPOPlaylistBaseIE):
'description': 'md5:52cf4eefbc96fffcbdc06d024147abea',
'upload_date': '20130225',
},
+ 'skip': 'Video gone',
},
{
'url': 'http://www.vpro.nl/programmas/2doc/2015/sergio-herman.html',
'info_dict': {
'id': 'sergio-herman',
- 'title': 'Sergio Herman: Fucking perfect',
+ 'title': 'sergio herman: fucking perfect',
},
'playlist_count': 2,
},
@@ -487,7 +488,7 @@ class VPROIE(NPOPlaylistBaseIE):
'url': 'http://www.vpro.nl/programmas/2doc/2015/education-education.html',
'info_dict': {
'id': 'education-education',
- 'title': '2Doc',
+ 'title': 'education education',
},
'playlist_count': 2,
}