[tube8] Fix extraction (Closes #5952)
authorSergey M․ <dstftw@gmail.com>
Thu, 11 Jun 2015 16:18:08 +0000 (22:18 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 11 Jun 2015 16:18:08 +0000 (22:18 +0600)
youtube_dl/extractor/tube8.py

index 6ca8840b0869f1490c06c7df0905c28e38ba1fee..c9cb69333f7da0a9f4fe009e79b06433bca83726 100644 (file)
@@ -47,7 +47,7 @@ class Tube8IE(InfoExtractor):
         webpage = self._download_webpage(req, display_id)
 
         flashvars = json.loads(self._html_search_regex(
-            r'flashvars\s*=\s*({.+?})', webpage, 'flashvars'))
+            r'flashvars\s*=\s*({.+?});\r?\n', webpage, 'flashvars'))
 
         video_url = flashvars['video_url']
         if flashvars.get('encrypted') is True: