From: kitty Date: Thu, 8 Oct 2015 13:31:23 +0000 (-0700) Subject: Fixed 4tube.com extractor to pull metadata from associated Javascript and not the... X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=b90b0c4ffa6f84a2ea5556d4df99de5f8ef2c7dd;p=youtube-dl Fixed 4tube.com extractor to pull metadata from associated Javascript and not the HTML of the desired page. --- 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'