Updated DashGenerator and changed the used video formats for the local dash generation from formats to adaptiveFormats
This commit is contained in:
		
							parent
							
								
									518a11e3be
								
							
						
					
					
						commit
						66903d8002
					
				| 
						 | 
					@ -20281,9 +20281,9 @@
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "yt-dash-manifest-generator": {
 | 
					    "yt-dash-manifest-generator": {
 | 
				
			||||||
      "version": "1.0.2",
 | 
					      "version": "1.1.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/yt-dash-manifest-generator/-/yt-dash-manifest-generator-1.0.2.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/yt-dash-manifest-generator/-/yt-dash-manifest-generator-1.1.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-rcBsAAhwlxtW/9irXRbU8N/8Qpft96OO0pLFvF8O7nDrjRWljnJC+DheXuhYGXpMqJGksROH1xQ1bHpwwp310g==",
 | 
					      "integrity": "sha512-kLYeroH5LmdlvoRf4PrYyzgR5+tFaB1COSsLOjKHPnDvHQ+0Vp+c258TYR0WQp2RNpW57DYci9WG3O8+b1FQzQ==",
 | 
				
			||||||
      "requires": {
 | 
					      "requires": {
 | 
				
			||||||
        "xml-js": "^1.6.11",
 | 
					        "xml-js": "^1.6.11",
 | 
				
			||||||
        "ytdl-core": "^3.2.2"
 | 
					        "ytdl-core": "^3.2.2"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -42,7 +42,7 @@
 | 
				
			||||||
    "youtube-comments-task": "^1.3.15",
 | 
					    "youtube-comments-task": "^1.3.15",
 | 
				
			||||||
    "youtube-suggest": "^1.1.0",
 | 
					    "youtube-suggest": "^1.1.0",
 | 
				
			||||||
    "yt-channel-info": "^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-trending-scraper": "^1.0.3",
 | 
				
			||||||
    "yt-xml2vtt": "^1.1.2",
 | 
					    "yt-xml2vtt": "^1.1.2",
 | 
				
			||||||
    "ytdl-core": "^3.2.2",
 | 
					    "ytdl-core": "^3.2.2",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -290,7 +290,7 @@ export default Vue.extend({
 | 
				
			||||||
          } else {
 | 
					          } else {
 | 
				
			||||||
            this.videoLengthSeconds = parseInt(result.videoDetails.lengthSeconds)
 | 
					            this.videoLengthSeconds = parseInt(result.videoDetails.lengthSeconds)
 | 
				
			||||||
            this.videoSourceList = result.player_response.streamingData.formats
 | 
					            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) => {
 | 
					            this.audioSourceList = result.player_response.streamingData.adaptiveFormats.filter((format) => {
 | 
				
			||||||
              return format.mimeType.includes('audio')
 | 
					              return format.mimeType.includes('audio')
 | 
				
			||||||
| 
						 | 
					@ -627,7 +627,6 @@ export default Vue.extend({
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      fs.writeFileSync(fileLocation, xmlData)
 | 
					      fs.writeFileSync(fileLocation, xmlData)
 | 
				
			||||||
      console.log('CREATED FILE')
 | 
					 | 
				
			||||||
      return [
 | 
					      return [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          url: uriSchema,
 | 
					          url: uriSchema,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue