[npo] Add www.2doc.nl (formarly www.hollanddoc.nl) support to existing npo extractor
This commit is contained in:
parent
7232e54813
commit
377b9d2aca
@ -622,6 +622,7 @@ from .npo import (
|
|||||||
SchoolTVIE,
|
SchoolTVIE,
|
||||||
VPROIE,
|
VPROIE,
|
||||||
WNLIE,
|
WNLIE,
|
||||||
|
TweeDocIE,
|
||||||
)
|
)
|
||||||
from .npr import NprIE
|
from .npr import NprIE
|
||||||
from .nrk import (
|
from .nrk import (
|
||||||
|
@ -526,3 +526,29 @@ class AndereTijdenIE(NPOPlaylistBaseIE):
|
|||||||
},
|
},
|
||||||
'playlist_count': 3,
|
'playlist_count': 3,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
|
|
||||||
|
class TweeDocIE(NPOPlaylistBaseIE):
|
||||||
|
IE_NAME = 'tweedoc'
|
||||||
|
_VALID_URL = 'https?://(?:www\.)2doc\.nl[^.]*/(?P<id>[^/]+)\.html'
|
||||||
|
_PLAYLIST_TITLE_RE = r'(?s)<h1[^>]+class=["\'].*?\bpage-title\b.*?["\'][^>]*>(.+?)</h1>'
|
||||||
|
_PLAYLIST_ENTRY_RE = r'data-media-id="([^"]+)"'
|
||||||
|
|
||||||
|
_TESTS = [
|
||||||
|
{
|
||||||
|
'url': 'http://www.2doc.nl/documentaires/series/2doc/2015/oktober/de-tegenprestatie.html',
|
||||||
|
'info_dict': {
|
||||||
|
'id': 'de-tegenprestatie',
|
||||||
|
'title': 'De Tegenprestatie - De Tegenprestatie - 2Doc:',
|
||||||
|
},
|
||||||
|
'playlist_count': 2,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'url': 'http://www.2doc.nl/speel~VARA_101375237~mh17-het-verdriet-van-nederland~.html',
|
||||||
|
'info_dict': {
|
||||||
|
'id': 'speel~VARA_101375237~mh17-het-verdriet-van-nederland~',
|
||||||
|
'title': 'Speel - - MH17: Het verdriet van Nederland',
|
||||||
|
},
|
||||||
|
'playlist_count': 1,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user