Compare commits

...

3 Commits

Author SHA1 Message Date
Bart Broere 1ca4e686a3 Add an MD5 2 months ago
Bart Broere 28624cfe09 Work work 2 months ago
Bart Broere c08f29f45b Update unit tests 2 months ago

@ -855,7 +855,7 @@ from .npo import (
SchoolTVIE,
HetKlokhuisIE,
VPROIE,
WNLIE,
ZAPPIE,
)
from .npr import NprIE
from .nrk import (

@ -15,17 +15,24 @@ class NPOIE(InfoExtractor):
_TESTS = [{
'url': 'https://npo.nl/start/serie/zembla/seizoen-2015/wie-is-de-mol-2/',
# TODO fill in other test attributes
'md5': 'f9ce9c43cc8bc3b8138df1562b99c379',
'info_dict': {
'description': 'Wie is de mol? (2)',
'ext': 'm4v',
'duration': 2439,
'id': 'wie-is-de-mol-2',
'thumbnail': 'https://assets-start.npo.nl/resources/2023/07/01/e723c3cf-3e42-418a-9ba5-f6dbb64b516a.jpg',
'title': 'Wie is de mol? (2)'
}
}, {
'url': 'https://npo.nl/start/serie/vpro-tegenlicht/seizoen-11/zwart-geld-de-toekomst-komt-uit-afrika',
'md5': 'f8065e4e5a7824068ed3c7e783178f2c',
'md5': 'c84d054219c4888ed53b4ee3d01b2d93',
'info_dict': {
'id': 'VPWON_1169289',
'ext': 'm4v',
'title': 'Tegenlicht: Zwart geld. De toekomst komt uit Afrika',
'description': 'md5:52cf4eefbc96fffcbdc06d024147abea',
'upload_date': '20130225',
'duration': 3000,
'id': 'zwart-geld-de-toekomst-komt-uit-afrika',
'title': 'Zwart geld: de toekomst komt uit Afrika',
'description': 'Zwart geld: de toekomst komt uit Afrika',
'thumbnail': 'https://assets-start.npo.nl/resources/2023/06/30/d9879593-1944-4249-990c-1561dac14d8e.jpg',
'duration': 3000
},
}]
@ -105,7 +112,12 @@ class BNNVaraIE(NPOIE):
_VALID_URL = r'https?://(?:www\.)?bnnvara\.nl/videos/[0-9]*'
_TESTS = [{
'url': 'https://www.bnnvara.nl/videos/27455',
# TODO fill in other test attributes
'md5': '392dd367877739e49b9e0a9a550b178a',
'info_dict': {
'id': 'VARA_101369808',
'thumbnail': 'https://media.vara.nl/files/thumbnails/321291_custom_zembla__wie_is_de_mol_680x383.jpg',
'title': 'Zembla - Wie is de mol?'
}
}]
def _real_extract(self, url):
@ -145,7 +157,10 @@ class ONIE(NPOIE):
_VALID_URL = r'https?://(?:www\.)?ongehoordnederland.tv/.*'
_TESTS = [{
'url': 'https://ongehoordnederland.tv/2024/03/01/korte-clips/heeft-preppen-zin-betwijfel-dat-je-daar-echt-iets-aan-zult-hebben-bij-oorlog-lydia-daniel/',
# TODO fill in other test attributes
'md5': 'a85ebd50fa86fe5cbce654655f7dbb12',
'info_dict': {
}
}]
def _real_extract(self, url):
@ -196,7 +211,12 @@ class SchoolTVIE(NPOIE):
_TESTS = [{
'url': 'https://schooltv.nl/item/zapp-music-challenge-2015-zapp-music-challenge-2015',
# TODO fill in other test attributes
'md5': 'e9ef151c4886994e2bea23593348cb14',
'info_dict': {
'id': 'zapp-music-challenge-2015-zapp-music-challenge-2015',
'title': 'Zapp Music Challenge 2015 - Alain Clark & Yaell',
'description': "Een nummer schrijven met de super bekende soulzanger en producer Alain Clark? Dat is de uitdaging voor de dertienjarige Yaell uit Delft. En als het dan echt goed is, mag hij het ook nog eens live gaan spelen op de speelplaats bij Giel Beelen! Muziek is heel erg belangrijk in het leven van Yaell. 'Als er geen muziek zou zijn, dan zou ik heel veel niet kunnen.' Hij is dan ook altijd aan het schrijven, vaak over zijn eigen leven. Maar soms is het best lastig om die teksten te verzinnen. Vindt hij de inspiratie om een hit te maken met Alain?"
},
}]
def _real_extract(self, url):
@ -232,7 +252,7 @@ class NTRSubsiteIE(NPOIE):
def _real_extract(self, url):
video_id = url.rstrip('/').split('/')[-1]
page, _ = self._download_webpage_handle(url)
page, _ = self._download_webpage_handle(url, video_id)
results = re.findall(r'data-mid="(.+_.+)"', page)
formats = []
for result in results:
@ -251,11 +271,16 @@ class NTRSubsiteIE(NPOIE):
class HetKlokhuisIE(NTRSubsiteIE):
IE_NAME = 'het-klokhuis'
IE_NAME = 'hetklokhuis'
IE_DESC = 'hetklokhuis.nl'
_VALID_URL = r'https?://(?:www\.)?het-klokhuis\.nl/.*'
_VALID_URL = r'https?://(?:www\.)?hetklokhuis\.nl/.*'
_TESTS = [{
'url': 'https://hetklokhuis.nl/dossier/142/zoek-het-uit/tv-uitzending/2987/aliens'
'url': 'https://hetklokhuis.nl/dossier/142/zoek-het-uit/tv-uitzending/2987/aliens',
'md5': '4664b54ed4e05183b1e4f2f4290d551e',
'info_dict': {
'id': 'aliens',
'title': 'aliens'
}
}]
@ -265,7 +290,12 @@ class VPROIE(NPOIE):
_VALID_URL = r'https?://(?:www\.)?vpro.nl/.*'
_TESTS = [{
'url': 'https://www.vpro.nl/programmas/tegenlicht/kijk/afleveringen/2015-2016/offline-als-luxe.html',
# TODO fill in other test attributes
'md5': 'cf302e066b5313cfaf8d5adf50d64f13',
'info_dict': {
'id': 'offline-als-luxe.html',
'title': 'offline-als-luxe.html',
'ext': 'm4v',
}
}]
def _real_extract(self, url):
@ -293,6 +323,10 @@ class AndereTijdenIE(NTRSubsiteIE):
IE_DESC = 'anderetijden.nl'
_VALID_URL = r'https?://(?:www\.)?anderetijden\.nl/.*'
_TESTS = [{
'url': 'https://anderetijden.nl/programma/1/Andere-Tijden/aflevering/676/Duitse-soldaten-over-de-Slag-bij-Arnhem'
# TODO fill in other test attributes
'url': 'https://anderetijden.nl/programma/1/Andere-Tijden/aflevering/676/Duitse-soldaten-over-de-Slag-bij-Arnhem',
'md5': '3d607b16e00b459156b4ab6e163dccd7',
'info_dict': {
'id': 'Duitse-soldaten-over-de-Slag-bij-Arnhem',
'title': 'Duitse-soldaten-over-de-Slag-bij-Arnhem'
}
}]

Loading…
Cancel
Save