Proxy videos through Invidious if local API is enabled and setting is enabled

This commit is contained in:
Preston 2020-10-04 17:01:59 -04:00
parent 54a3810a53
commit 4b2fb7aa1f
1 changed files with 5 additions and 1 deletions

View File

@ -311,7 +311,11 @@ export default Vue.extend({
}
if (typeof result.player_response.streamingData.adaptiveFormats !== 'undefined') {
this.dashSrc = await this.createLocalDashManifest(result.player_response.streamingData.adaptiveFormats)
if (this.proxyVideos) {
this.dashSrc = await this.createInvidiousDashManifest()
} else {
this.dashSrc = await this.createLocalDashManifest(result.player_response.streamingData.adaptiveFormats)
}
this.audioSourceList = result.player_response.streamingData.adaptiveFormats.filter((format) => {
return format.mimeType.includes('audio')