From b90b0c4ffa6f84a2ea5556d4df99de5f8ef2c7dd Mon Sep 17 00:00:00 2001 From: kitty Date: Thu, 8 Oct 2015 06:31:23 -0700 Subject: [PATCH] Fixed 4tube.com extractor to pull metadata from associated Javascript and not the HTML of the desired page. --- youtube_dl/extractor/fourtube.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/youtube_dl/extractor/fourtube.py b/youtube_dl/extractor/fourtube.py index 3bb4f6239..226ee67f0 100644 --- a/youtube_dl/extractor/fourtube.py +++ b/youtube_dl/extractor/fourtube.py @@ -45,11 +45,9 @@ class FourTubeIE(InfoExtractor): 'uploadDate', webpage)) thumbnail = self._html_search_meta('thumbnailUrl', webpage) uploader_id = self._html_search_regex( - r'', - webpage, 'uploader id') + r'', webpage, 'uploader id') uploader = self._html_search_regex( - r'', - webpage, 'uploader') + r'', webpage, 'uploader') categories_html = self._search_regex( r'(?s)>\s*Categories / Tags\s*.*?', @@ -68,9 +66,12 @@ class FourTubeIE(InfoExtractor): webpage, 'like count', fatal=False)) duration = parse_duration(self._html_search_meta('duration', webpage)) + player_url = self._search_regex(r'