From c49bf6aff5445bb73cef4ca7d963a94122b18062 Mon Sep 17 00:00:00 2001 From: Svallinn <41585298+Svallinn@users.noreply.github.com> Date: Wed, 17 Mar 2021 01:30:35 +0000 Subject: [PATCH] Remove unnecessary packages and snippets of code --- package-lock.json | 5 ----- package.json | 1 - .../components/ft-video-player/ft-video-player.js | 10 ---------- .../components/ft-video-player/ft-video-player.vue | 9 --------- src/renderer/views/Watch/Watch.js | 1 - 5 files changed, 26 deletions(-) diff --git a/package-lock.json b/package-lock.json index 67ce048c..5800ad72 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/ytdl-core/-/ytdl-core-4.5.0.tgz", diff --git a/package.json b/package.json index 807f023c..4f146d1f 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,6 @@ "yt-comment-scraper": "^3.0.2", "yt-dash-manifest-generator": "1.1.0", "yt-trending-scraper": "^1.1.1", - "yt-xml2vtt": "^1.2.0", "ytdl-core": "^4.5.0", "ytpl": "^2.0.5", "ytsr": "^3.3.1" diff --git a/src/renderer/components/ft-video-player/ft-video-player.js b/src/renderer/components/ft-video-player/ft-video-player.js index 46716955..c50ea7b1 100644 --- a/src/renderer/components/ft-video-player/ft-video-player.js +++ b/src/renderer/components/ft-video-player/ft-video-player.js @@ -145,16 +145,6 @@ export default Vue.extend({ return this.$store.getters.getAutoplayVideos } }, - watch: { - sourceList: function () { - this.determineFormatType() - }, - captionList: function () { - this.player.caption({ - data: this.captionList - }) - } - }, mounted: function () { this.id = this._uid diff --git a/src/renderer/components/ft-video-player/ft-video-player.vue b/src/renderer/components/ft-video-player/ft-video-player.vue index 06674ac6..60c63a88 100644 --- a/src/renderer/components/ft-video-player/ft-video-player.vue +++ b/src/renderer/components/ft-video-player/ft-video-player.vue @@ -18,15 +18,6 @@ :label="source.qualityLabel" :selected="source.qualityLabel === selectedDefaultQuality" > - diff --git a/src/renderer/views/Watch/Watch.js b/src/renderer/views/Watch/Watch.js index 979ffa97..b7fd1bb0 100644 --- a/src/renderer/views/Watch/Watch.js +++ b/src/renderer/views/Watch/Watch.js @@ -1,6 +1,5 @@ import Vue from 'vue' import { mapActions } from 'vuex' -import xml2vtt from 'yt-xml2vtt' import $ from 'jquery' import fs from 'fs' import ytDashGen from 'yt-dash-manifest-generator'