From 3cca33eac34f95663bc0c12d2b648860c73b8b7d Mon Sep 17 00:00:00 2001 From: Luca Date: Sat, 27 Mar 2021 19:01:05 +0100 Subject: [PATCH] More cleanup --- src/renderer/components/watch-video-info/watch-video-info.js | 1 - src/renderer/store/modules/history.js | 1 - src/renderer/store/modules/profile.js | 4 ---- src/renderer/store/modules/ytdl.js | 2 -- 4 files changed, 8 deletions(-) diff --git a/src/renderer/components/watch-video-info/watch-video-info.js b/src/renderer/components/watch-video-info/watch-video-info.js index 1471c231..0c35afb8 100644 --- a/src/renderer/components/watch-video-info/watch-video-info.js +++ b/src/renderer/components/watch-video-info/watch-video-info.js @@ -263,7 +263,6 @@ export default Vue.extend({ const currentProfile = JSON.parse(JSON.stringify(this.profileList[this.activeProfile])) const primaryProfile = JSON.parse(JSON.stringify(this.profileList[0])) - console.log("PRIMARY PROFILE:", primaryProfile) if (this.isSubscribed) { currentProfile.subscriptions = currentProfile.subscriptions.filter((channel) => { diff --git a/src/renderer/store/modules/history.js b/src/renderer/store/modules/history.js index 24841d16..3869c0c5 100644 --- a/src/renderer/store/modules/history.js +++ b/src/renderer/store/modules/history.js @@ -13,7 +13,6 @@ if (window && window.process && window.process.type === 'renderer') { const remote = require('@electron/remote') dbLocation = remote.app.getPath('userData') - console.log("DB", dbLocation) dbLocation = dbLocation + '/history.db' } else { dbLocation = 'history.db' diff --git a/src/renderer/store/modules/profile.js b/src/renderer/store/modules/profile.js index b28b568b..59ba16a4 100644 --- a/src/renderer/store/modules/profile.js +++ b/src/renderer/store/modules/profile.js @@ -54,7 +54,6 @@ const actions = { } else { // We want the primary profile to always be first // So sort with that then sort alphabetically by profile name - console.log('PROFILE DB RESULTS', results) const profiles = results.sort((a, b) => { if (a._id === 'allChannels') { return -1 @@ -68,13 +67,10 @@ const actions = { }) if (state.profileList.length < profiles.length) { - console.log("STATE LIST LESS RTHAN PROFILES LENGTH") console.log(profiles, state.profileList) - console.log("ROOTSTATE:SETTINGDEFATL", rootState.settings.defaultProfile) const profileIndex = profiles.findIndex((profile) => { return profile._id === rootState.settings.defaultProfile }) - console.log("INDEX", profileIndex) if (profileIndex !== -1) { dispatch('updateActiveProfile', profileIndex) } diff --git a/src/renderer/store/modules/ytdl.js b/src/renderer/store/modules/ytdl.js index eefeb60a..5d6bceb9 100644 --- a/src/renderer/store/modules/ytdl.js +++ b/src/renderer/store/modules/ytdl.js @@ -252,7 +252,6 @@ const actions = { }, ytGetPlaylistInfo ({ rootState }, playlistId) { - console.log("PALYLIST INTOFOF") return new Promise((resolve, reject) => { console.log(playlistId) console.log('Getting playlist info please wait...') @@ -298,7 +297,6 @@ const actions = { limit: 'Infinity', requestOptions: { agent } }).then((result) => { - console.log("RESULT PLAYLIST", result) resolve(result) }).catch((err) => { reject(err)