mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-08 22:17:07 +01:00
Adding subtitles
This commit is contained in:
parent
9724e5d336
commit
2e241242a3
@ -250,6 +250,8 @@ def _real_extract(self, url):
|
|||||||
})
|
})
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
|
subtitles = self._extract_subtitles(cdoc, guid)
|
||||||
|
|
||||||
virtual_id = show_name + ' ' + epTitle + ' part ' + compat_str(part_num + 1)
|
virtual_id = show_name + ' ' + epTitle + ' part ' + compat_str(part_num + 1)
|
||||||
entries.append({
|
entries.append({
|
||||||
'id': guid,
|
'id': guid,
|
||||||
@ -260,6 +262,7 @@ def _real_extract(self, url):
|
|||||||
'duration': duration,
|
'duration': duration,
|
||||||
'thumbnail': thumbnail,
|
'thumbnail': thumbnail,
|
||||||
'description': description,
|
'description': description,
|
||||||
|
'subtitles': subtitles,
|
||||||
})
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user