Remove unnecessary packages and snippets of code

This commit is contained in:
Svallinn 2021-03-17 01:30:35 +00:00
parent 3e8b137f67
commit c49bf6aff5
No known key found for this signature in database
GPG Key ID: 09FB527F34037CCA
5 changed files with 0 additions and 26 deletions

5
package-lock.json generated
View File

@ -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",

View File

@ -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"

View File

@ -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

View File

@ -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>

View File

@ -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'