[xtube] user playlist extractor
This commit is contained in:
parent
0320ddc192
commit
9f5809b3e8
3 changed files with 47 additions and 2 deletions
|
@ -38,6 +38,7 @@ from youtube_dl.extractor import (
|
|||
GenericIE,
|
||||
TEDIE,
|
||||
ToypicsUserIE,
|
||||
XTubeUserIE,
|
||||
)
|
||||
|
||||
|
||||
|
@ -278,5 +279,13 @@ class TestPlaylists(unittest.TestCase):
|
|||
self.assertEqual(result['id'], 'Mikey')
|
||||
self.assertTrue(len(result['entries']) >= 17)
|
||||
|
||||
def test_xtube_user(self):
|
||||
dl = FakeYDL()
|
||||
ie = XTubeUserIE(dl)
|
||||
result = ie.extract('http://www.xtube.com/community/profile.php?user=greenshowers')
|
||||
self.assertIsPlaylist(result)
|
||||
self.assertEqual(result['id'], 'greenshowers')
|
||||
self.assertTrue(len(result['entries']) >= 155)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue