]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[cspan] Do not test number of playlist entries
authorPhilipp Hagemeister <phihag@phihag.de>
Fri, 4 Apr 2014 21:16:20 +0000 (23:16 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Fri, 4 Apr 2014 21:16:22 +0000 (23:16 +0200)
Apparently, CSpan switches between single-file and multiple-file results. Either one is fine as long as we get the full four hours.

test/test_playlists.py

index 5fb679aa189269821c6f2a429be3c6f15bbc3ce9..75c6a6bbbf14d0e939a375a9500006ba46bac9b4 100644 (file)
@@ -324,7 +324,6 @@ class TestPlaylists(unittest.TestCase):
         self.assertEqual(result['id'], '342759')
         self.assertEqual(
             result['title'], 'General Motors Ignition Switch Recall')
-        self.assertEqual(len(result['entries']), 9)
         whole_duration = sum(e['duration'] for e in result['entries'])
         self.assertEqual(whole_duration, 14855)