X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=youtube_dl%2Fextractor%2Ffunnyordie.py;h=f2928b5fecb68df5429a90ca079faac6faf93bb2;hb=51378d359e790b1c4462c0577fa48dda97dc4c01;hp=0a22d99d2dbe7d510c37439dac2779d60a883b45;hpb=1593194c63acd8dc8aa125edbde443680fabd2f7;p=youtube-dl.git diff --git a/youtube_dl/extractor/funnyordie.py b/youtube_dl/extractor/funnyordie.py index 0a22d99d2..f2928b5fe 100644 --- a/youtube_dl/extractor/funnyordie.py +++ b/youtube_dl/extractor/funnyordie.py @@ -28,6 +28,9 @@ class FunnyOrDieIE(InfoExtractor): 'description': 'Please use this to sell something. www.jonlajoie.com', 'thumbnail': 're:^http:.*\.jpg$', }, + 'params': { + 'skip_download': True, + }, }, { 'url': 'http://www.funnyordie.com/articles/ebf5e34fc8/10-hours-of-walking-in-nyc-as-a-man', 'only_matching': True, @@ -45,27 +48,58 @@ class FunnyOrDieIE(InfoExtractor): links.sort(key=lambda link: 1 if link[1] == 'mp4' else 0) - bitrates = self._html_search_regex(r']+src=(["\'])(?P.+?/master\.m3u8[^"\']*)\1', + webpage, 'm3u8 url', group='url') formats = [] - for bitrate in bitrates: - for link in links: - formats.append({ - 'url': '%s%d.%s' % (link[0], bitrate, link[1]), - 'format_id': '%s-%d' % (link[1], bitrate), - 'vbr': bitrate, - }) - - subtitles={} - subtitle_matches=re.findall(r'