[zdf] extract webm formats(closes #26659)
authorRemita Amine <remitamine@gmail.com>
Fri, 4 Dec 2020 13:16:03 +0000 (14:16 +0100)
committerRemita Amine <remitamine@gmail.com>
Fri, 4 Dec 2020 13:16:32 +0000 (14:16 +0100)
youtube_dl/extractor/zdf.py

index 656864b2ed8a9982c1da934b01aff6bcb7126acf..5ed2946c2b7b3a864b7ade795bf44bcfa7fa9b81 100644 (file)
@@ -40,7 +40,7 @@ class ZDFBaseIE(InfoExtractor):
 
 class ZDFIE(ZDFBaseIE):
     _VALID_URL = r'https?://www\.zdf\.de/(?:[^/]+/)*(?P<id>[^/?]+)\.html'
-    _QUALITIES = ('auto', 'low', 'med', 'high', 'veryhigh')
+    _QUALITIES = ('auto', 'low', 'med', 'high', 'veryhigh', 'hd')
     _GEO_COUNTRIES = ['DE']
 
     _TESTS = [{
@@ -119,7 +119,7 @@ class ZDFIE(ZDFBaseIE):
         if not ptmd_path:
             ptmd_path = t[
                 'http://zdf.de/rels/streams/ptmd-template'].replace(
-                '{playerId}', 'portal')
+                '{playerId}', 'ngplayer_2_4')
 
         ptmd = self._call_api(
             urljoin(url, ptmd_path), player, url, video_id, 'metadata')