diff options
author | mtilbury <[email protected]> | 2019-05-04 16:26:30 -0700 |
---|---|---|
committer | Sergey M <[email protected]> | 2019-05-05 06:26:30 +0700 |
commit | 876fed6bf32c623ca55ece31b675cebec75f05f1 (patch) | |
tree | f1cacac22537abad3e33e7249b6c4810355f510f /youtube_dl/extractor/francetv.py | |
parent | c9856648db6060a2f4aefda95646b3965e1858c5 (diff) | |
download | youtube-dl-876fed6bf32c623ca55ece31b675cebec75f05f1.tar.gz youtube-dl-876fed6bf32c623ca55ece31b675cebec75f05f1.zip |
[francetvinfo] Extend video id extraction (closes #20619) (#20740)
Diffstat (limited to 'youtube_dl/extractor/francetv.py')
-rw-r--r-- | youtube_dl/extractor/francetv.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/youtube_dl/extractor/francetv.py b/youtube_dl/extractor/francetv.py index 20f449c5c..81b468c7d 100644 --- a/youtube_dl/extractor/francetv.py +++ b/youtube_dl/extractor/francetv.py @@ -371,12 +371,13 @@ class FranceTVInfoIE(FranceTVBaseInfoExtractor): self.url_result(dailymotion_url, DailymotionIE.ie_key()) for dailymotion_url in dailymotion_urls]) - video_id, catalogue = self._search_regex( - (r'id-video=([^@]+@[^"]+)', + video_id = self._search_regex( + (r'player\.load[^;]+src:\s*["\']([^"\']+)', + r'id-video=([^@]+@[^"]+)', r'<a[^>]+href="(?:https?:)?//videos\.francetv\.fr/video/([^@]+@[^"]+)"'), - webpage, 'video id').split('@') + webpage, 'video id') - return self._make_url_result(video_id, catalogue) + return self._make_url_result(video_id) class FranceTVInfoSportIE(FranceTVBaseInfoExtractor): |