From 3f6a90eb63d1c3af61cb86b085b4e3b82e8b7dc5 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Thu, 1 Apr 2021 16:17:15 +0530 Subject: [PATCH] [ard:mediathek] Fix video id extraction (Closes #202) --- yt_dlp/extractor/ard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ def _real_extract(self, url): 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)