diff options
author | Tom-Oliver Heidel <github@tom-oliver.eu> | 2020-08-31 23:38:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-31 23:38:05 +0200 |
commit | 70445b0114966d25b3c1efcadd3cafa6d5d21cd5 (patch) | |
tree | 00d27c0c5ab6be3a13f7d86d4da83b6ed34dae44 | |
parent | 70ef7d5f08f99cfe87035ae5d163e4a6dea19eb6 (diff) | |
parent | 13c30d1d525586c1b7cd1a98f63320302e4ecf1b (diff) | |
download | hypervideo-pre-70445b0114966d25b3c1efcadd3cafa6d5d21cd5.tar.lz hypervideo-pre-70445b0114966d25b3c1efcadd3cafa6d5d21cd5.tar.xz hypervideo-pre-70445b0114966d25b3c1efcadd3cafa6d5d21cd5.zip |
Merge pull request #9 from Surkal/francetv
[francetv] fix extractor
-rw-r--r-- | youtube_dl/extractor/francetv.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/youtube_dl/extractor/francetv.py b/youtube_dl/extractor/francetv.py index 81b468c7d..e340cddba 100644 --- a/youtube_dl/extractor/francetv.py +++ b/youtube_dl/extractor/francetv.py @@ -316,13 +316,14 @@ class FranceTVInfoIE(FranceTVBaseInfoExtractor): _VALID_URL = r'https?://(?:www|mobile|france3-regions)\.francetvinfo\.fr/(?:[^/]+/)*(?P<id>[^/?#&.]+)' _TESTS = [{ - 'url': 'http://www.francetvinfo.fr/replay-jt/france-3/soir-3/jt-grand-soir-3-lundi-26-aout-2013_393427.html', + 'url': 'https://www.francetvinfo.fr/replay-jt/france-3/soir-3/jt-grand-soir-3-jeudi-22-aout-2019_3561461.html', 'info_dict': { - 'id': '84981923', + 'id': 'd12458ee-5062-48fe-bfdd-a30d6a01b793', 'ext': 'mp4', 'title': 'Soir 3', - 'upload_date': '20130826', - 'timestamp': 1377548400, + 'upload_date': '20190822', + 'timestamp': 1566510900, + 'description': 'md5:72d167097237701d6e8452ff03b83c00', 'subtitles': { 'fr': 'mincount:2', }, @@ -374,7 +375,8 @@ class FranceTVInfoIE(FranceTVBaseInfoExtractor): video_id = self._search_regex( (r'player\.load[^;]+src:\s*["\']([^"\']+)', r'id-video=([^@]+@[^"]+)', - r'<a[^>]+href="(?:https?:)?//videos\.francetv\.fr/video/([^@]+@[^"]+)"'), + r'<a[^>]+href="(?:https?:)?//videos\.francetv\.fr/video/([^@]+@[^"]+)"', + r'data-id="([^"]+)"'), webpage, 'video id') return self._make_url_result(video_id) |