projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[youtube] Fix uploader id and uploader URL extraction
[youtube-dl]
/
youtube_dl
/
extractor
/
franceculture.py
diff --git
a/youtube_dl/extractor/franceculture.py
b/youtube_dl/extractor/franceculture.py
index df3d757f31901bef9a32d6c25159caf09b9bf32c..306b45fc99a4c3495a233d8fb3c649032641d87a 100644
(file)
--- a/
youtube_dl/extractor/franceculture.py
+++ b/
youtube_dl/extractor/franceculture.py
@@
-6,7
+6,6
@@
from ..utils import (
determine_ext,
extract_attributes,
int_or_none,
determine_ext,
extract_attributes,
int_or_none,
- unified_strdate,
)
)
@@
-32,7
+31,13
@@
class FranceCultureIE(InfoExtractor):
webpage = self._download_webpage(url, display_id)
video_data = extract_attributes(self._search_regex(
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']
webpage, 'video data'))
video_url = video_data['data-asset-source']