mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-01 02:37:25 +01:00
[npo] Fix subtitles (Closes #3638)
This commit is contained in:
parent
25e5ebf382
commit
9e91449c8d
@ -159,15 +159,18 @@ class NPOIE(NPOBaseIE):
|
|||||||
'quality': stream.get('kwaliteit'),
|
'quality': stream.get('kwaliteit'),
|
||||||
})
|
})
|
||||||
|
|
||||||
subtitles = {}
|
|
||||||
|
|
||||||
tt888 = metadata.get('tt888')
|
|
||||||
if self._have_to_download_any_subtitles and tt888 == 'ja':
|
|
||||||
subtitles['nl'] = 'http://e.omroep.nl/tt888/%s' % video_id
|
|
||||||
subtitles = self.extract_subtitles(video_id, subtitles)
|
|
||||||
|
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
|
subtitles = {}
|
||||||
|
if metadata.get('tt888') == 'ja':
|
||||||
|
subtitles['nl'] = 'http://e.omroep.nl/tt888/%s' % video_id
|
||||||
|
|
||||||
|
if self._downloader.params.get('listsubtitles', False):
|
||||||
|
self._list_available_subtitles(video_id, subtitles)
|
||||||
|
return
|
||||||
|
|
||||||
|
subtitles = self.extract_subtitles(video_id, subtitles)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': metadata['titel'],
|
'title': metadata['titel'],
|
||||||
|
Loading…
Reference in New Issue
Block a user