Browse Source

[zattoo] Add support for tv.salt.ch

Alexander Seiler 6 years ago
parent
commit
a81daba231
2 changed files with 12 additions and 0 deletions
  1. 1 0
      youtube_dl/extractor/extractors.py
  2. 11 0
      youtube_dl/extractor/zattoo.py

+ 1 - 0
youtube_dl/extractor/extractors.py

@@ -1497,6 +1497,7 @@ from .zattoo import (
     QuantumTVIE,
     QuicklineIE,
     QuicklineLiveIE,
+    SaltTVIE,
     SAKTVIE,
     VTXTVIE,
     WalyTVIE,

+ 11 - 0
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,
+    }]