]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[test/youtube_lists] Change the list used for testing the Top Lists extractor
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 25 Jan 2014 15:55:59 +0000 (16:55 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 25 Jan 2014 16:02:32 +0000 (17:02 +0100)
The ‘Top tracks’ list is not always present in the channel page

test/test_youtube_lists.py

index d9fe5af4eec5fe791fce6d7fc06a6efb262213e4..de157f657ad60960ec2a8bc8a5c13bc234112066 100644 (file)
@@ -120,7 +120,7 @@ class TestYoutubeLists(unittest.TestCase):
     def test_youtube_toplist(self):
         dl = FakeYDL()
         ie = YoutubeTopListIE(dl)
-        result = ie.extract('yttoplist:music:Top Tracks')
+        result = ie.extract('yttoplist:music:Trending')
         entries = result['entries']
         self.assertTrue(len(entries) >= 5)