aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/ard.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-04-01 16:17:15 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-04-01 16:17:15 +0530
commit3f6a90eb63d1c3af61cb86b085b4e3b82e8b7dc5 (patch)
treec1a9749dfa16ed7b8772b96423c8d48feea37822 /yt_dlp/extractor/ard.py
parentb050d210dfd6f1a9d0e56820c81aa0eec924e2eb (diff)
downloadhypervideo-pre-3f6a90eb63d1c3af61cb86b085b4e3b82e8b7dc5.tar.lz
hypervideo-pre-3f6a90eb63d1c3af61cb86b085b4e3b82e8b7dc5.tar.xz
hypervideo-pre-3f6a90eb63d1c3af61cb86b085b4e3b82e8b7dc5.zip
[ard:mediathek] Fix video id extraction (Closes #202)
Diffstat (limited to 'yt_dlp/extractor/ard.py')
-rw-r--r--yt_dlp/extractor/ard.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/extractor/ard.py b/yt_dlp/extractor/ard.py
index 12a7cfb54..294da7c51 100644
--- a/yt_dlp/extractor/ard.py
+++ b/yt_dlp/extractor/ard.py
@@ -272,7 +272,8 @@ class ARDMediathekIE(ARDMediathekBaseIE):
else: # request JSON file
if not document_id:
video_id = self._search_regex(
- r'/play/(?:config|media)/(\d+)', webpage, 'media id')
+ (r'/play/(?:config|media|sola)/(\d+)', r'contentId["\']\s*:\s*(\d+)'),
+ webpage, 'media id', default=None)
info = self._extract_media_info(
'http://www.ardmediathek.de/play/media/%s' % video_id,
webpage, video_id)