diff options
author | Jaime Marquínez Ferrándiz <[email protected]> | 2015-02-23 21:52:07 +0100 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <[email protected]> | 2015-02-23 23:04:07 +0100 |
commit | 25ac63ed71bdc2a82842a593db9a150a0b8b7a6e (patch) | |
tree | bf9e7f0a88419c1fc6764df665e985d8c8e83374 /test/test_subtitles.py | |
parent | 99209c2916753799e9c68e8d466c5253113f25bc (diff) | |
download | youtube-dl-25ac63ed71bdc2a82842a593db9a150a0b8b7a6e.tar.gz youtube-dl-25ac63ed71bdc2a82842a593db9a150a0b8b7a6e.zip |
[rtve] Extract subtitles
Diffstat (limited to 'test/test_subtitles.py')
-rw-r--r-- | test/test_subtitles.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_subtitles.py b/test/test_subtitles.py index 7f93f0a75..3f2d8a2ba 100644 --- a/test/test_subtitles.py +++ b/test/test_subtitles.py @@ -25,6 +25,7 @@ from youtube_dl.extractor import ( RaiIE, VikiIE, ThePlatformIE, + RTVEALaCartaIE, ) @@ -305,5 +306,19 @@ class TestThePlatformSubtitles(BaseTestSubtitles): self.assertEqual(md5(subtitles['en']), '97e7670cbae3c4d26ae8bcc7fdd78d4b') +class TestRtveSubtitles(BaseTestSubtitles): + url = 'http://www.rtve.es/alacarta/videos/los-misterios-de-laura/misterios-laura-capitulo-32-misterio-del-numero-17-2-parte/2428621/' + IE = RTVEALaCartaIE + + def test_allsubtitles(self): + print('Skipping, only available from Spain') + return + self.DL.params['writesubtitles'] = True + self.DL.params['allsubtitles'] = True + subtitles = self.getSubtitles() + self.assertEqual(set(subtitles.keys()), set(['es'])) + self.assertEqual(md5(subtitles['es']), '69e70cae2d40574fb7316f31d6eb7fca') + + if __name__ == '__main__': unittest.main() |