about summary refs log tree commit diff
path: root/youtube_dl/extractor/francetv.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2019-03-08 23:26:59 +0700
committerSergey M․ <dstftw@gmail.com>2019-03-08 23:28:24 +0700
commit9d74ea6d36696396392974e94a40dce1e5a881a6 (patch)
treeb61254188d351c1bd10e84d780c9a3afd7d1a5a1 /youtube_dl/extractor/francetv.py
parent7b6e76087080eac54e14cdead4e3bc0225c654b5 (diff)
downloadyoutube-dl-9d74ea6d36696396392974e94a40dce1e5a881a6.tar.gz
youtube-dl-9d74ea6d36696396392974e94a40dce1e5a881a6.tar.xz
youtube-dl-9d74ea6d36696396392974e94a40dce1e5a881a6.zip
[francetv:site] Relax video id regex and update test (closes #20268)
Diffstat (limited to 'youtube_dl/extractor/francetv.py')
-rw-r--r--youtube_dl/extractor/francetv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/francetv.py b/youtube_dl/extractor/francetv.py
index 3c4ef08a8..6101fb6bd 100644
--- a/youtube_dl/extractor/francetv.py
+++ b/youtube_dl/extractor/francetv.py
@@ -215,7 +215,7 @@ class FranceTVSiteIE(FranceTVBaseInfoExtractor):
     _TESTS = [{
         'url': 'https://www.france.tv/france-2/13h15-le-dimanche/140921-les-mysteres-de-jesus.html',
         'info_dict': {
-            'id': '162311093',
+            'id': 'ec217ecc-0733-48cf-ac06-af1347b849d1',
             'ext': 'mp4',
             'title': '13h15, le dimanche... - Les mystères de Jésus',
             'description': 'md5:75efe8d4c0a8205e5904498ffe1e1a42',
@@ -271,7 +271,7 @@ class FranceTVSiteIE(FranceTVBaseInfoExtractor):
 
         catalogue = None
         video_id = self._search_regex(
-            r'(?:data-main-video\s*=|videoId\s*:)\s*(["\'])(?P<id>(?:(?!\1).)+)\1',
+            r'(?:data-main-video\s*=|videoId["\']?\s*[:=])\s*(["\'])(?P<id>(?:(?!\1).)+)\1',
             webpage, 'video id', default=None, group='id')
 
         if not video_id: