logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: a81daba2311cb4d6c5bc7e62b47438a78aa5c10f
parent 61ff92e11ea876532697451b1ed727f42274b109
Author: Alexander Seiler <seileralex@gmail.com>
Date:   Mon, 28 Jan 2019 20:20:46 +0100

[zattoo] Add support for tv.salt.ch


Diffstat:

Myoutube_dl/extractor/extractors.py1+
Myoutube_dl/extractor/zattoo.py11+++++++++++
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py @@ -1497,6 +1497,7 @@ from .zattoo import ( QuantumTVIE, QuicklineIE, QuicklineLiveIE, + SaltTVIE, SAKTVIE, VTXTVIE, WalyTVIE, diff --git a/youtube_dl/extractor/zattoo.py b/youtube_dl/extractor/zattoo.py @@ -420,3 +420,14 @@ class EinsUndEinsTVIE(ZattooIE): 'url': 'https://www.1und1.tv/watch/abc/123-abc', 'only_matching': True, }] + + +class SaltTVIE(ZattooIE): + _NETRC_MACHINE = 'salttv' + _HOST = 'tv.salt.ch' + _VALID_URL = _make_valid_url(ZattooIE._VALID_URL_TEMPLATE, _HOST) + + _TESTS = [{ + 'url': 'https://tv.salt.ch/watch/abc/123-abc', + 'only_matching': True, + }]