aboutsummaryrefslogtreecommitdiff
path: root/test/test_subtitles.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-02-18 18:57:01 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-02-18 18:57:01 +0100
commit01561da142485a581e67ce98ef009ebe0ed7b4c1 (patch)
treed3fe2b83c4854c3f340a96e3bbfd39b6ab886d19 /test/test_subtitles.py
parent0af25f784bc5bff7cbce2d4af725b4bf2d2262c5 (diff)
[nrk] Convert to new subtitles system
Diffstat (limited to 'test/test_subtitles.py')
-rw-r--r--test/test_subtitles.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_subtitles.py b/test/test_subtitles.py
index c018d9b49..1e2324232 100644
--- a/test/test_subtitles.py
+++ b/test/test_subtitles.py
@@ -21,6 +21,7 @@ from youtube_dl.extractor import (
LyndaIE,
NPOIE,
ComedyCentralIE,
+ NRKTVIE,
)
@@ -346,5 +347,17 @@ class TestMTVSubtitles(BaseTestSubtitles):
self.assertEqual(md5(subtitles['en']), 'b9f6ca22a6acf597ec76f61749765e65')
+class TestNRKSubtitles(BaseTestSubtitles):
+ url = 'http://tv.nrk.no/serie/ikke-gjoer-dette-hjemme/DMPV73000411/sesong-2/episode-1'
+ IE = NRKTVIE
+
+ def test_allsubtitles(self):
+ self.DL.params['writesubtitles'] = True
+ self.DL.params['allsubtitles'] = True
+ subtitles = self.getSubtitles()
+ self.assertEqual(set(subtitles.keys()), set(['no']))
+ self.assertEqual(md5(subtitles['no']), '1d221e6458c95c5494dcd38e6a1f129a')
+
+
if __name__ == '__main__':
unittest.main()