youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 6f20b65e728ee30d9b987a39932a3355501f7f67
parent cea364f70c97dad933fa38698f3c9df1bdb485cf
Author: Yen Chi Hsuan <yan12125@gmail.com>
Date:   Wed, 12 Oct 2016 01:41:41 +0800

[test/test_http] Update tests

After switching to HTML5 extraction helpers in generic.py, the result
info_dict is always a playlist.

Diffstat:
Mtest/test_http.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/test_http.py b/test/test_http.py @@ -87,7 +87,7 @@ class TestHTTP(unittest.TestCase): ydl = YoutubeDL({'logger': FakeLogger()}) r = ydl.extract_info('http://localhost:%d/302' % self.port) - self.assertEqual(r['url'], 'http://localhost:%d/vid.mp4' % self.port) + self.assertEqual(r['entries'][0]['url'], 'http://localhost:%d/vid.mp4' % self.port) class TestHTTPS(unittest.TestCase): @@ -111,7 +111,7 @@ class TestHTTPS(unittest.TestCase): ydl = YoutubeDL({'logger': FakeLogger(), 'nocheckcertificate': True}) r = ydl.extract_info('https://localhost:%d/video.html' % self.port) - self.assertEqual(r['url'], 'https://localhost:%d/vid.mp4' % self.port) + self.assertEqual(r['entries'][0]['url'], 'https://localhost:%d/vid.mp4' % self.port) def _build_proxy_handler(name):