]> jfr.im git - yt-dlp.git/commitdiff
[WDR] Expand valid URL
authorpukkandan <redacted>
Mon, 22 Nov 2021 08:11:57 +0000 (13:41 +0530)
committerpukkandan <redacted>
Mon, 22 Nov 2021 19:59:08 +0000 (01:29 +0530)
Closes #1749

yt_dlp/extractor/wdr.py

index f54aa6ff904d448fbce5f00511346ec22c6b90a1..d3229d8af3495994b76345c3bdc6efac26d554cf 100644 (file)
 
 
 class WDRIE(InfoExtractor):
-    _VALID_URL = r'https?://deviceids-medp\.wdr\.de/ondemand/\d+/(?P<id>\d+)\.js'
+    _VALID_URL = r'''(?x)https?://
+        (?:deviceids-medp\.wdr\.de/ondemand/\d+/|
+           kinder\.wdr\.de/(?!mediathek/)[^#?]+-)
+        (?P<id>\d+)\.(?:js|assetjsonp)
+    '''
     _GEO_COUNTRIES = ['DE']
     _TEST = {
         'url': 'http://deviceids-medp.wdr.de/ondemand/155/1557833.js',