]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[francetv:site] Extend video id regex (closes #20029, closes #20071)
authorSergey M․ <dstftw@gmail.com>
Thu, 28 Feb 2019 16:26:52 +0000 (23:26 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 28 Feb 2019 16:26:52 +0000 (23:26 +0700)
youtube_dl/extractor/francetv.py

index 2ffe83a78c49b8e6b7436642febb72f66567068d..3c4ef08a833361d9a9dd82f186637fcec26a7348 100644 (file)
@@ -271,7 +271,7 @@ class FranceTVSiteIE(FranceTVBaseInfoExtractor):
 
         catalogue = None
         video_id = self._search_regex(
-            r'data-main-video=(["\'])(?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: