diff options
author | Ashish Gupta <39122144+Ashish0804@users.noreply.github.com> | 2021-11-30 21:39:15 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-30 21:39:15 +0530 |
commit | 5118d2ec58e3a882900fef7a0191c465ddf3d592 (patch) | |
tree | 6afe6913336f265cef30452d9bce606834c292a3 /yt_dlp/extractor/discoverynetworks.py | |
parent | 717216b0930c742dab5bbd065e9c58caace74a8c (diff) | |
download | hypervideo-pre-5118d2ec58e3a882900fef7a0191c465ddf3d592.tar.lz hypervideo-pre-5118d2ec58e3a882900fef7a0191c465ddf3d592.tar.xz hypervideo-pre-5118d2ec58e3a882900fef7a0191c465ddf3d592.zip |
[DiscoveryPlus] Rewrite extractors (see desc) (#1766)
* Add `DiscoveryPlusItalyShowIE`
* Use `uuid.uuid4().hex` for device id so no cookies are required
* Fix dash formats not being downloaded
* Extract subtitles from manifests
* Move all extractors to one file and restructure inheritances
Authored by: Ashish0804, pukkandan
Diffstat (limited to 'yt_dlp/extractor/discoverynetworks.py')
-rw-r--r-- | yt_dlp/extractor/discoverynetworks.py | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/yt_dlp/extractor/discoverynetworks.py b/yt_dlp/extractor/discoverynetworks.py deleted file mode 100644 index 4f8bdf0b9..000000000 --- a/yt_dlp/extractor/discoverynetworks.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 -from __future__ import unicode_literals - - -from .dplay import DPlayIE - - -class DiscoveryNetworksDeIE(DPlayIE): - _VALID_URL = r'https?://(?:www\.)?(?P<domain>(?:tlc|dmax)\.de|dplay\.co\.uk)/(?:programme|show|sendungen)/(?P<programme>[^/]+)/(?:video/)?(?P<alternate_id>[^/]+)' - - _TESTS = [{ - 'url': 'https://www.tlc.de/programme/breaking-amish/video/die-welt-da-drauen/DCB331270001100', - 'info_dict': { - 'id': '78867', - 'ext': 'mp4', - 'title': 'Die Welt da draußen', - 'description': 'md5:61033c12b73286e409d99a41742ef608', - 'timestamp': 1554069600, - 'upload_date': '20190331', - }, - 'params': { - 'skip_download': True, - }, - }, { - 'url': 'https://www.dmax.de/programme/dmax-highlights/video/tuning-star-sidney-hoffmann-exklusiv-bei-dmax/191023082312316', - 'only_matching': True, - }, { - 'url': 'https://www.dplay.co.uk/show/ghost-adventures/video/hotel-leger-103620/EHD_280313B', - 'only_matching': True, - }, { - 'url': 'https://tlc.de/sendungen/breaking-amish/die-welt-da-drauen/', - 'only_matching': True, - }] - - def _real_extract(self, url): - domain, programme, alternate_id = self._match_valid_url(url).groups() - country = 'GB' if domain == 'dplay.co.uk' else 'DE' - realm = 'questuk' if country == 'GB' else domain.replace('.', '') - return self._get_disco_api_info( - url, '%s/%s' % (programme, alternate_id), - 'sonic-eu1-prod.disco-api.com', realm, country) |