Remove unnecessary packages and snippets of code
This commit is contained in:
parent
3e8b137f67
commit
c49bf6aff5
|
@ -18399,11 +18399,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"yt-xml2vtt": {
|
|
||||||
"version": "1.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/yt-xml2vtt/-/yt-xml2vtt-1.2.0.tgz",
|
|
||||||
"integrity": "sha512-4ZzqHIUfdPFa0Xb+8M3vsbokXooOhQuFuXa8bw4CJ5V0xWjRA/CPlZ3u0VTYoce4sUmMgoOVN7Xcj8NpUNujXA=="
|
|
||||||
},
|
|
||||||
"ytdl-core": {
|
"ytdl-core": {
|
||||||
"version": "4.5.0",
|
"version": "4.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/ytdl-core/-/ytdl-core-4.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/ytdl-core/-/ytdl-core-4.5.0.tgz",
|
||||||
|
|
|
@ -51,7 +51,6 @@
|
||||||
"yt-comment-scraper": "^3.0.2",
|
"yt-comment-scraper": "^3.0.2",
|
||||||
"yt-dash-manifest-generator": "1.1.0",
|
"yt-dash-manifest-generator": "1.1.0",
|
||||||
"yt-trending-scraper": "^1.1.1",
|
"yt-trending-scraper": "^1.1.1",
|
||||||
"yt-xml2vtt": "^1.2.0",
|
|
||||||
"ytdl-core": "^4.5.0",
|
"ytdl-core": "^4.5.0",
|
||||||
"ytpl": "^2.0.5",
|
"ytpl": "^2.0.5",
|
||||||
"ytsr": "^3.3.1"
|
"ytsr": "^3.3.1"
|
||||||
|
|
|
@ -145,16 +145,6 @@ export default Vue.extend({
|
||||||
return this.$store.getters.getAutoplayVideos
|
return this.$store.getters.getAutoplayVideos
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
|
||||||
sourceList: function () {
|
|
||||||
this.determineFormatType()
|
|
||||||
},
|
|
||||||
captionList: function () {
|
|
||||||
this.player.caption({
|
|
||||||
data: this.captionList
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
this.id = this._uid
|
this.id = this._uid
|
||||||
|
|
||||||
|
|
|
@ -18,15 +18,6 @@
|
||||||
:label="source.qualityLabel"
|
:label="source.qualityLabel"
|
||||||
:selected="source.qualityLabel === selectedDefaultQuality"
|
:selected="source.qualityLabel === selectedDefaultQuality"
|
||||||
>
|
>
|
||||||
<track
|
|
||||||
v-for="(caption, index) in captionList"
|
|
||||||
:key="index + '_caption'"
|
|
||||||
kind="subtitles"
|
|
||||||
:src="caption.baseUrl || caption.url"
|
|
||||||
:srclang="caption.languageCode"
|
|
||||||
:label="caption.label || caption.name.simpleText"
|
|
||||||
:type="caption.type"
|
|
||||||
>
|
|
||||||
</video>
|
</video>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { mapActions } from 'vuex'
|
import { mapActions } from 'vuex'
|
||||||
import xml2vtt from 'yt-xml2vtt'
|
|
||||||
import $ from 'jquery'
|
import $ from 'jquery'
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import ytDashGen from 'yt-dash-manifest-generator'
|
import ytDashGen from 'yt-dash-manifest-generator'
|
||||||
|
|
Loading…
Reference in New Issue