aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-03-01 19:22:09 +0700
committerSergey M․ <dstftw@gmail.com>2020-03-01 19:22:09 +0700
commit50d19895a1a3515d48dc952bf9280cbdc4f405f9 (patch)
tree12f5c9a020c71bf5f7d047327b59a08d78c5b1ab
parent6d475d01d8f1fc9f5e92ac2caa986453bee95ae1 (diff)
[franceculture] Fix extraction (closes #24204)
-rw-r--r--youtube_dl/extractor/franceculture.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/youtube_dl/extractor/franceculture.py b/youtube_dl/extractor/franceculture.py
index b8fa17588..306b45fc9 100644
--- a/youtube_dl/extractor/franceculture.py
+++ b/youtube_dl/extractor/franceculture.py
@@ -31,7 +31,13 @@ class FranceCultureIE(InfoExtractor):
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']