mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-11-05 18:23:51 +01:00
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
Block a user