[arte.tv:+7] Allow single quotes for json vp url regexes (Closes #3676)
authorSergey M․ <dstftw@gmail.com>
Thu, 4 Sep 2014 18:17:16 +0000 (01:17 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 4 Sep 2014 18:17:16 +0000 (01:17 +0700)
youtube_dl/extractor/arte.py

index 69ef88e0380678578aaeb87f424c43f1deccffec..957d35979d34244f7c4cb4df649a349453bf9123 100644 (file)
@@ -78,7 +78,7 @@ class ArteTVPlus7IE(InfoExtractor):
 
     def _extract_from_webpage(self, webpage, video_id, lang):
         json_url = self._html_search_regex(
-            [r'arte_vp_url="(.*?)"', r'data-url="([^"]+)"'],
+            [r'arte_vp_url=["\'](.*?)["\']', r'data-url=["\']([^"]+)["\']'],
             webpage, 'json vp url')
         return self._extract_from_json_url(json_url, video_id, lang)