Skip to content

Commit

Permalink
[franceculture] Fix extraction (closes #24204)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Mar 1, 2020
1 parent 6d475d0 commit 50d1989
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion youtube_dl/extractor/franceculture.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ def _real_extract(self, url):
webpage = self._download_webpage(url, display_id)

video_data = extract_attributes(self._search_regex(
r'(?s)<div[^>]+class="[^"]*?(?:title-zone-diffusion|heading-zone-(?:wrapper|player-button))[^"]*?"[^>]*>.*?(<button[^>]+data-asset-source="[^"]+"[^>]+>)',
r'''(?sx)
(?:
</h1>|
<div[^>]+class="[^"]*?(?:title-zone-diffusion|heading-zone-(?:wrapper|player-button))[^"]*?"[^>]*>
).*?
(<button[^>]+data-asset-source="[^"]+"[^>]+>)
''',
webpage, 'video data'))

video_url = video_data['data-asset-source']
Expand Down

0 comments on commit 50d1989

Please sign in to comment.