[ard:mediathek] Fix video id extraction (Closes #202)

This commit is contained in:
pukkandan 2021-04-01 16:17:15 +05:30
parent b050d210df
commit 3f6a90eb63
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698

View file

@ -272,7 +272,8 @@ def _real_extract(self, url):
else: # request JSON file else: # request JSON file
if not document_id: if not document_id:
video_id = self._search_regex( 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( info = self._extract_media_info(
'http://www.ardmediathek.de/play/media/%s' % video_id, 'http://www.ardmediathek.de/play/media/%s' % video_id,
webpage, video_id) webpage, video_id)