[youtube] Convert to new subtitles system
The automatic captions are stored in the 'automactic_captions' field, which is used if no normal subtitles are found for an specific language.
This commit is contained in:
parent
a1f2a06b34
commit
360e1ca5cc
4 changed files with 61 additions and 37 deletions
|
@ -50,11 +50,6 @@ class TestYoutubeSubtitles(BaseTestSubtitles):
|
|||
url = 'QRS8MkLhQmM'
|
||||
IE = YoutubeIE
|
||||
|
||||
def test_youtube_no_writesubtitles(self):
|
||||
self.DL.params['writesubtitles'] = False
|
||||
subtitles = self.getSubtitles()
|
||||
self.assertEqual(subtitles, None)
|
||||
|
||||
def test_youtube_subtitles(self):
|
||||
self.DL.params['writesubtitles'] = True
|
||||
subtitles = self.getSubtitles()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue