]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/discoverynetworks.py
2 from __future__
import unicode_literals
5 from .dplay
import DPlayIE
8 class DiscoveryNetworksDeIE(DPlayIE
):
9 _VALID_URL
= r
'https?://(?:www\.)?(?P<domain>(?:tlc|dmax)\.de|dplay\.co\.uk)/(?:programme|show|sendungen)/(?P<programme>[^/]+)/(?:video/)?(?P<alternate_id>[^/]+)'
12 'url': 'https://www.tlc.de/programme/breaking-amish/video/die-welt-da-drauen/DCB331270001100',
16 'title': 'Die Welt da draußen',
17 'description': 'md5:61033c12b73286e409d99a41742ef608',
18 'timestamp': 1554069600,
19 'upload_date': '20190331',
22 'skip_download': True,
25 'url': 'https://www.dmax.de/programme/dmax-highlights/video/tuning-star-sidney-hoffmann-exklusiv-bei-dmax/191023082312316',
26 'only_matching': True,
28 'url': 'https://www.dplay.co.uk/show/ghost-adventures/video/hotel-leger-103620/EHD_280313B',
29 'only_matching': True,
31 'url': 'https://tlc.de/sendungen/breaking-amish/die-welt-da-drauen/',
32 'only_matching': True,
35 def _real_extract(self
, url
):
36 domain
, programme
, alternate_id
= self
._match
_valid
_url
(url
).groups()
37 country
= 'GB' if domain
== 'dplay.co.uk' else 'DE'
38 realm
= 'questuk' if country
== 'GB' else domain
.replace('.', '')
39 return self
._get
_disco
_api
_info
(
40 url
, '%s/%s' % (programme
, alternate_id
),
41 'sonic-eu1-prod.disco-api.com', realm
, country
)