Fix the test for dailymotion subtitles
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 31 Oct 2013 06:55:03 +0000 (07:55 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 31 Oct 2013 06:55:03 +0000 (07:55 +0100)
The extractor returns a single info_dict now.

test/test_dailymotion_subtitles.py

index c596415c4189624d254f72afd7b7bd7452d9fe50..ba3580ea419d513d8e92c97f813c236ce9d596e0 100644 (file)
@@ -22,7 +22,7 @@ class TestDailymotionSubtitles(unittest.TestCase):
         return info_dict
     def getSubtitles(self):
         info_dict = self.getInfoDict()
-        return info_dict[0]['subtitles']
+        return info_dict['subtitles']
     def test_no_writesubtitles(self):
         subtitles = self.getSubtitles()
         self.assertEqual(subtitles, None)