aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-07-16 23:21:04 +0600
committerSergey M․ <dstftw@gmail.com>2015-07-16 23:21:04 +0600
commite118031ef827e851e537daa5b439cf5c249ca88d (patch)
treea3e424be95a0fe126dd3313b9b74ea1786ddba0a /youtube_dl
parent5eb778bf4d52c2d1b53182e48c630a3458f2fb22 (diff)
[npo] Extend _VALID_URL to support ntr.nl (Closes #6248)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/npo.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/youtube_dl/extractor/npo.py b/youtube_dl/extractor/npo.py
index 62d12b7a6..1c823ec7f 100644
--- a/youtube_dl/extractor/npo.py
+++ b/youtube_dl/extractor/npo.py
@@ -37,8 +37,9 @@ class NPOBaseIE(InfoExtractor):
class NPOIE(NPOBaseIE):
- IE_NAME = 'npo.nl'
- _VALID_URL = r'https?://(?:www\.)?npo\.nl/(?!live|radio)[^/]+/[^/]+/(?P<id>[^/?]+)'
+ IE_NAME = 'npo'
+ IE_DESC = 'npo.nl and ntr.nl'
+ _VALID_URL = r'https?://(?:www\.)?(?:npo|ntr)\.nl/(?!live|radio)(?:[^/]+/){2,}(?P<id>[^/?#]+)'
_TESTS = [
{
@@ -100,6 +101,18 @@ class NPOIE(NPOBaseIE):
'title': 'Hoe gaat Europa verder na Parijs?',
},
},
+ {
+ 'url': 'http://www.ntr.nl/Aap-Poot-Pies/27/detail/Aap-poot-pies/VPWON_1233944#content',
+ 'md5': '01c6a2841675995da1f0cf776f03a9c3',
+ 'info_dict': {
+ 'id': 'VPWON_1233944',
+ 'ext': 'm4v',
+ 'title': 'Aap, poot, pies',
+ 'description': 'md5:c9c8005d1869ae65b858e82c01a91fde',
+ 'upload_date': '20150508',
+ 'duration': 599,
+ },
+ }
]
def _real_extract(self, url):