diff options
author | Jaime Marquínez Ferrándiz <[email protected]> | 2015-02-22 11:37:27 +0100 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <[email protected]> | 2015-02-22 11:37:27 +0100 |
commit | 98c70d6fc7006c8cbbd76fb1b8661d758fc4f5d8 (patch) | |
tree | a78f559be6c02e35c10bf32f624c82f5aa73d8b3 /test/test_YoutubeDL.py | |
parent | ab84349b16b3c94775543a04855fc77005f8237e (diff) | |
download | youtube-dl-98c70d6fc7006c8cbbd76fb1b8661d758fc4f5d8.tar.gz youtube-dl-98c70d6fc7006c8cbbd76fb1b8661d758fc4f5d8.zip |
[YoutubeDL] only add normal subtitles to the 'requested_subtitles' field if 'writesubtitles' is True
Diffstat (limited to 'test/test_YoutubeDL.py')
-rw-r--r-- | test/test_YoutubeDL.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py index e11292211..055e42555 100644 --- a/test/test_YoutubeDL.py +++ b/test/test_YoutubeDL.py @@ -389,6 +389,13 @@ class TestFormatSelection(unittest.TestCase): self.assertFalse(subs['es']['_auto']) self.assertTrue(subs['pt']['_auto']) + result = get_info({'writeautomaticsub': True, 'subtitleslangs': ['es', 'pt']}) + subs = result['requested_subtitles'] + self.assertTrue(subs) + self.assertEqual(set(subs.keys()), set(['es', 'pt'])) + self.assertTrue(subs['es']['_auto']) + self.assertTrue(subs['pt']['_auto']) + def test_add_extra_info(self): test_dict = { 'extractor': 'Foo', |