aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorM.Yasoob Khalid <yasoob.khld@gmail.com>2013-06-26 15:30:21 +0500
committerM.Yasoob Khalid <yasoob.khld@gmail.com>2013-06-26 15:30:21 +0500
commitd1bd37deac4fb61b350ba488bdbdf230aa0b335c (patch)
tree8bf85a6a82183a47d1732a81dccc36bb1ae25a9d /test
parent405ec05cb2a1bb1ce27353a831924c17f57b86f4 (diff)
parent52e8e1dc88ad177abcbb6a52b3b262527f7a1f20 (diff)
Merge branch 'master' of github.com:rg3/youtube-dl
Diffstat (limited to 'test')
-rw-r--r--test/test_youtube_subtitles.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/test_youtube_subtitles.py b/test/test_youtube_subtitles.py
index dad15de37..5814e13d4 100644
--- a/test/test_youtube_subtitles.py
+++ b/test/test_youtube_subtitles.py
@@ -84,7 +84,7 @@ class TestYoutubeSubtitles(unittest.TestCase):
info_dict = IE.extract('QRS8MkLhQmM')
subtitles = info_dict[0]['subtitles']
self.assertEqual(len(subtitles), 13)
- def test_youtube_subtitles_format(self):
+ def test_youtube_subtitles_sbv_format(self):
DL = FakeYDL()
DL.params['writesubtitles'] = True
DL.params['subtitlesformat'] = 'sbv'
@@ -92,6 +92,14 @@ class TestYoutubeSubtitles(unittest.TestCase):
info_dict = IE.extract('QRS8MkLhQmM')
sub = info_dict[0]['subtitles'][0]
self.assertEqual(md5(sub[2]), '13aeaa0c245a8bed9a451cb643e3ad8b')
+ def test_youtube_subtitles_vtt_format(self):
+ DL = FakeYDL()
+ DL.params['writesubtitles'] = True
+ DL.params['subtitlesformat'] = 'vtt'
+ IE = YoutubeIE(DL)
+ info_dict = IE.extract('QRS8MkLhQmM')
+ sub = info_dict[0]['subtitles'][0]
+ self.assertEqual(md5(sub[2]), '356cdc577fde0c6783b9b822e7206ff7')
def test_youtube_list_subtitles(self):
DL = FakeYDL()
DL.params['listsubtitles'] = True