Add caption download links when Invidious API is enabled
This commit is contained in:
parent
1086d7b516
commit
c7ac9a8415
|
@ -547,7 +547,15 @@ export default Vue.extend({
|
|||
}
|
||||
|
||||
return object
|
||||
}).reverse()
|
||||
}).reverse().concat(result.captions.map((caption) => {
|
||||
const label = `${caption.label} (${caption.languageCode}) - text/vtt`
|
||||
const object = {
|
||||
url: caption.url,
|
||||
label: label
|
||||
}
|
||||
|
||||
return object
|
||||
}))
|
||||
|
||||
this.audioSourceList = result.adaptiveFormats.filter((format) => {
|
||||
return format.type.includes('audio')
|
||||
|
|
Loading…
Reference in New Issue