aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-02-19 14:54:50 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-02-19 14:54:50 +0100
commit8807f1277f8c69488046fc7215cc79165e976ff3 (patch)
tree4f33f33333618c2c31f9786c028fc63ea38c7234 /test
parent4f7cea6c5327fdda79877e34e630c478f0e5d4dd (diff)
[theplatform] Convert to new subtitles system
Diffstat (limited to 'test')
-rw-r--r--test/test_subtitles.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_subtitles.py b/test/test_subtitles.py
index 98d1afff4..c04fe6f22 100644
--- a/test/test_subtitles.py
+++ b/test/test_subtitles.py
@@ -24,6 +24,7 @@ from youtube_dl.extractor import (
NRKTVIE,
RaiIE,
VikiIE,
+ ThePlatformIE,
)
@@ -385,5 +386,19 @@ class TestVikiSubtitles(BaseTestSubtitles):
self.assertEqual(md5(subtitles['en']), 'b0b781eeb45efd3f6398a925b259150b')
+class TestThePlatformSubtitles(BaseTestSubtitles):
+ # from http://www.3playmedia.com/services-features/tools/integrations/theplatform/
+ # (see http://theplatform.com/about/partners/type/subtitles-closed-captioning/)
+ url = 'theplatform:JFUjUE1_ehvq'
+ IE = ThePlatformIE
+
+ def test_allsubtitles(self):
+ self.DL.params['writesubtitles'] = True
+ self.DL.params['allsubtitles'] = True
+ subtitles = self.getSubtitles()
+ self.assertEqual(set(subtitles.keys()), set(['en']))
+ self.assertEqual(md5(subtitles['en']), '97e7670cbae3c4d26ae8bcc7fdd78d4b')
+
+
if __name__ == '__main__':
unittest.main()