aboutsummaryrefslogtreecommitdiff
path: root/test/test_playlists.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-06-26 16:34:36 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-06-26 16:34:36 +0200
commit78338f71ca2d96e4bf507c438fbb2751742989b1 (patch)
treeec2ffc549fce527031640777c0c1b8c28c456003 /test/test_playlists.py
parentf5172a308418a54d077e19495a5c560f2bd644e6 (diff)
[livestream:original] Add support for folder urls (closes #2631)
The webpage only contains shortened links for the videos, since the server doesn't support HEAD requests, we use an specific extractor for them.
Diffstat (limited to 'test/test_playlists.py')
-rw-r--r--test/test_playlists.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_playlists.py b/test/test_playlists.py
index 42051fe2a..71dac1b02 100644
--- a/test/test_playlists.py
+++ b/test/test_playlists.py
@@ -30,6 +30,7 @@ from youtube_dl.extractor import (
SoundcloudPlaylistIE,
TeacherTubeClassroomIE,
LivestreamIE,
+ LivestreamOriginalIE,
NHLVideocenterIE,
BambuserChannelIE,
BandcampAlbumIE,
@@ -155,6 +156,14 @@ class TestPlaylists(unittest.TestCase):
self.assertEqual(result['title'], 'TEDCity2.0 (English)')
self.assertTrue(len(result['entries']) >= 4)
+ def test_livestreamoriginal_folder(self):
+ dl = FakeYDL()
+ ie = LivestreamOriginalIE(dl)
+ result = ie.extract('https://www.livestream.com/newplay/folder?dirId=a07bf706-d0e4-4e75-a747-b021d84f2fd3')
+ self.assertIsPlaylist(result)
+ self.assertEqual(result['id'], 'a07bf706-d0e4-4e75-a747-b021d84f2fd3')
+ self.assertTrue(len(result['entries']) >= 28)
+
def test_nhl_videocenter(self):
dl = FakeYDL()
ie = NHLVideocenterIE(dl)