aboutsummaryrefslogtreecommitdiff
path: root/test/test_playlists.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-04-13 03:19:56 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-04-13 03:22:24 +0200
commitde906ef54373bcc397895f770992854004248cc4 (patch)
treeb5ae9e811fcc262f6a5cacd6bad61e147f2d4a16 /test/test_playlists.py
parent2fb3deeca166821cdfe45804b7aa4e27dfdbff62 (diff)
[aol] Add support for playlists (Fixes #2730)
Diffstat (limited to 'test/test_playlists.py')
-rw-r--r--test/test_playlists.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test_playlists.py b/test/test_playlists.py
index 75c6a6bbb..17f1e5fab 100644
--- a/test/test_playlists.py
+++ b/test/test_playlists.py
@@ -43,6 +43,7 @@ from youtube_dl.extractor import (
XTubeUserIE,
InstagramUserIE,
CSpanIE,
+ AolIE,
)
@@ -327,6 +328,16 @@ class TestPlaylists(unittest.TestCase):
whole_duration = sum(e['duration'] for e in result['entries'])
self.assertEqual(whole_duration, 14855)
+ def test_aol_playlist(self):
+ dl = FakeYDL()
+ ie = AolIE(dl)
+ result = ie.extract(
+ 'http://on.aol.com/playlist/brace-yourself---todays-weirdest-news-152147?icid=OnHomepageC4_Omg_Img#_videoid=518184316')
+ self.assertIsPlaylist(result)
+ self.assertEqual(result['id'], '152147')
+ self.assertEqual(
+ result['title'], 'Brace Yourself - Today\'s Weirdest News')
+ self.assertTrue(len(result['entries']) >= 10)
if __name__ == '__main__':
unittest.main()