[zattoo] Add support for tv.salt.ch
authorAlexander Seiler <seileralex@gmail.com>
Mon, 28 Jan 2019 19:20:46 +0000 (20:20 +0100)
committerSergey M <dstftw@gmail.com>
Mon, 28 Jan 2019 19:20:46 +0000 (02:20 +0700)
youtube_dl/extractor/extractors.py
youtube_dl/extractor/zattoo.py

index 2ffcffa9eed4061a9083e12349f4ee94c5e64b9c..9d776ff45bb72307db8698a58efc54c7e4f4899a 100644 (file)
@@ -1497,6 +1497,7 @@ from .zattoo import (
     QuantumTVIE,
     QuicklineIE,
     QuicklineLiveIE,
+    SaltTVIE,
     SAKTVIE,
     VTXTVIE,
     WalyTVIE,
index 896276301e49a53010bf9b6a07b4ea545b1e64fd..ee514666b3e6ae274ccc5f97c964a9d2cbaacd18 100644 (file)
@@ -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,
+    }]