mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-12-23 12:40:11 +09:00
Re-add Zapp
This commit is contained in:
parent
eb6e396bfb
commit
d36d50fe5c
@ -847,7 +847,7 @@ from .nowness import (
|
|||||||
NownessSeriesIE,
|
NownessSeriesIE,
|
||||||
)
|
)
|
||||||
from .noz import NozIE
|
from .noz import NozIE
|
||||||
from .npo import BNNVaraIE, NPOIE, ONIE
|
from .npo import BNNVaraIE, NPOIE, ONIE, VPROIE
|
||||||
from .npr import NprIE
|
from .npr import NprIE
|
||||||
from .nrk import (
|
from .nrk import (
|
||||||
NRKIE,
|
NRKIE,
|
||||||
|
@ -204,6 +204,7 @@ class VPROIE(NPOIE):
|
|||||||
formats = []
|
formats = []
|
||||||
for result in results:
|
for result in results:
|
||||||
formats.extend(self._download_by_product_id(result, video_id))
|
formats.extend(self._download_by_product_id(result, video_id))
|
||||||
|
break # TODO find a better solution, VPRO pages can have multiple videos embedded
|
||||||
|
|
||||||
if not formats:
|
if not formats:
|
||||||
raise ExtractorError('Could not find a POMS product id in the provided URL.')
|
raise ExtractorError('Could not find a POMS product id in the provided URL.')
|
||||||
@ -213,3 +214,24 @@ class VPROIE(NPOIE):
|
|||||||
'title': video_id,
|
'title': video_id,
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
class ZAPPIE(NPOIE):
|
||||||
|
IE_NAME = 'zapp'
|
||||||
|
IE_DESC = 'zapp.nl'
|
||||||
|
_VALID_URL = r'https?://(?:www\.)?zapp.nl/.*'
|
||||||
|
|
||||||
|
_TESTS = [{
|
||||||
|
'url': 'https://www.zapp.nl/programmas/zappsport/gemist/AT_300003973',
|
||||||
|
}]
|
||||||
|
|
||||||
|
def _real_extract(self, url):
|
||||||
|
video_id = url.rstrip('/').split('/')[-1]
|
||||||
|
|
||||||
|
formats = self._download_by_product_id(url, video_id)
|
||||||
|
|
||||||
|
return {
|
||||||
|
'id': video_id,
|
||||||
|
'title': video_id,
|
||||||
|
'formats': formats,
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user