1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-13 18:17:14 +08:00

[NPO] add support for ntr.nl

This commit is contained in:
t0mm0 2015-07-16 17:41:36 +01:00
parent 5eb778bf4d
commit 664027636e
2 changed files with 27 additions and 0 deletions

View File

@ -390,6 +390,7 @@ from .npo import (
NPORadioIE,
NPORadioFragmentIE,
TegenlichtVproIE,
NTRIE,
)
from .nrk import (
NRKIE,

View File

@ -381,3 +381,29 @@ class TegenlichtVproIE(NPOIE):
info_page = self._download_json(
'http://rs.vpro.nl/v2/api/media/%s.json' % urn, name)
return self._get_info(info_page['mid'])
class NTRIE(NPOIE):
IE_NAME = 'ntr.nl'
_VALID_URL = r'https?://(?:www\.)?ntr\.nl/.*/(?P<id>[^/#?]+)'
_TESTS = [
{
'url': 'http://www.ntr.nl/North-Sea-Jazz/5/detail/Concert-Marcus-Miller--Afrodeezia-3-nummers-video/WO_NTR_1352953',
'info_dict': {
'id': 'WO_NTR_1352953',
'ext': 'mp4',
'title': 'North Sea Jazz 2015',
'description': 'Concert Marcus Miller - Afrodeezia (3 nummers) op North Sea Jazz 2015',
'thumbnail': 'http://images.poms.omroep.nl/image/s720/c720x405/630038.jpg',
},
'params': {
# only available in NL
'skip_download': True,
},
},
]
def _real_extract(self, url):
video_id = self._match_id(url)
return self._get_info(video_id)