Updated DashGenerator and changed the used video formats for the local dash generation from formats to adaptiveFormats

This commit is contained in:
Luca 2020-08-30 21:31:48 +02:00
parent 518a11e3be
commit 66903d8002
3 changed files with 5 additions and 6 deletions

6
package-lock.json generated
View File

@ -20281,9 +20281,9 @@
}
},
"yt-dash-manifest-generator": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/yt-dash-manifest-generator/-/yt-dash-manifest-generator-1.0.2.tgz",
"integrity": "sha512-rcBsAAhwlxtW/9irXRbU8N/8Qpft96OO0pLFvF8O7nDrjRWljnJC+DheXuhYGXpMqJGksROH1xQ1bHpwwp310g==",
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/yt-dash-manifest-generator/-/yt-dash-manifest-generator-1.1.0.tgz",
"integrity": "sha512-kLYeroH5LmdlvoRf4PrYyzgR5+tFaB1COSsLOjKHPnDvHQ+0Vp+c258TYR0WQp2RNpW57DYci9WG3O8+b1FQzQ==",
"requires": {
"xml-js": "^1.6.11",
"ytdl-core": "^3.2.2"

View File

@ -42,7 +42,7 @@
"youtube-comments-task": "^1.3.15",
"youtube-suggest": "^1.1.0",
"yt-channel-info": "^1.1.0",
"yt-dash-manifest-generator": "^1.0.2",
"yt-dash-manifest-generator": "^1.1.0",
"yt-trending-scraper": "^1.0.3",
"yt-xml2vtt": "^1.1.2",
"ytdl-core": "^3.2.2",

View File

@ -290,7 +290,7 @@ export default Vue.extend({
} else {
this.videoLengthSeconds = parseInt(result.videoDetails.lengthSeconds)
this.videoSourceList = result.player_response.streamingData.formats
this.dashSrc = await this.createLocalDashManifest(result.formats)
this.dashSrc = await this.createLocalDashManifest(result.player_response.streamingData.adaptiveFormats)
this.audioSourceList = result.player_response.streamingData.adaptiveFormats.filter((format) => {
return format.mimeType.includes('audio')
@ -627,7 +627,6 @@ export default Vue.extend({
}
}
fs.writeFileSync(fileLocation, xmlData)
console.log('CREATED FILE')
return [
{
url: uriSchema,