From e61c4c53126437830204d7533a65c521bea9cfee Mon Sep 17 00:00:00 2001 From: kr4ssi <44404263+kr4ssi@users.noreply.github.com> Date: Tue, 3 Mar 2020 03:50:57 +0100 Subject: [PATCH] [LiveLeak] Extract vimeo embed --- youtube_dl/extractor/liveleak.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/liveleak.py b/youtube_dl/extractor/liveleak.py index 4ac437c8b7a..f25bad134d3 100644 --- a/youtube_dl/extractor/liveleak.py +++ b/youtube_dl/extractor/liveleak.py @@ -86,6 +86,19 @@ class LiveLeakIE(InfoExtractor): # No original video 'url': 'https://www.liveleak.com/view?t=C26ZZ_1558612804', 'only_matching': True, + }, { + # Vimeo embed + 'url': 'https://www.liveleak.com/view?t=973Sp_1583120710', + 'md5': '846a7164e20c1e2c5e9bc6efe3a853bd', + 'info_dict': { + 'id': '80725414', + 'ext': 'mp4', + 'description': 'Fender guitars\' tribute to Stevie and ALL the greats,', + 'uploader': 'smyle', + 'uploader_id': 'user8600287', + 'title': 'Liveleak.com - A Little Sunday Night SRV...', + 'thumbnail': r're:^https?://.*\.jpg$' + } }] @staticmethod @@ -111,7 +124,7 @@ def _real_extract(self, url): if not entries: # Maybe an embed? embed_url = self._search_regex( - r']+src="((?:https?:)?//(?:www\.)?(?:prochan|youtube)\.com/embed[^"]+)"', + r']+src="((?:https?:)?//(?:(?:www\.)?(?:prochan|youtube)\.com/embed|player\.vimeo\.com/video)[^"]+)"', webpage, 'embed URL') return { '_type': 'url_transparent',