From 9d74b496c0f98f61dbc1b1ba772017c8b45b9a33 Mon Sep 17 00:00:00 2001 From: aeph6Ee0 Date: Tue, 15 Sep 2015 18:48:40 +0200 Subject: [PATCH] [liveleak] add tests for multi_video and embedded youtube video --- youtube_dl/extractor/liveleak.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/youtube_dl/extractor/liveleak.py b/youtube_dl/extractor/liveleak.py index 346759196..db70bbc5c 100644 --- a/youtube_dl/extractor/liveleak.py +++ b/youtube_dl/extractor/liveleak.py @@ -51,6 +51,28 @@ class LiveLeakIE(InfoExtractor): 'uploader': 'bony333', 'title': 'Crazy Hungarian tourist films close call waterspout in Croatia' } + }, { + # Multiple videos per page (https://github.com/rg3/youtube-dl/issues/6542) + 'url': 'http://www.liveleak.com/view?i=677_1439397581', + 'info_dict': { + 'id': '677_1439397581', + 'title': 'Fuel Depot in China Explosion caught on video', + }, + 'playlist_mincount': 3 + }, { + # Embedded youtube video + 'url': 'http://www.liveleak.com/view?i=db4_1442324398', + 'md5': 'c72ce559d02cf26b6540c87d6a015c0c', + 'info_dict': { + 'id': 'db4_1442324398', + 'ext': 'mp4', + 'description': 'Is it worth 6 minutes of your time to listen to this?', + 'uploader': 'Vfor', + 'uploader_id': 'iSSerDc', + 'upload_date': '20070703', + 'title': "Pachelbel's Canon in D - Breathtaking" + } + }] def _video_count(self, entries): @@ -175,5 +197,6 @@ class LiveLeakIE(InfoExtractor): return { '_type': 'multi_video', 'id': page_id, + 'title': 'Fuel Depot in China Explosion caught on video', 'entries': entries, }