diff --git a/src/renderer/components/watch-video-playlist/watch-video-playlist.js b/src/renderer/components/watch-video-playlist/watch-video-playlist.js
index 465e30f2..0aaf7d5e 100644
--- a/src/renderer/components/watch-video-playlist/watch-video-playlist.js
+++ b/src/renderer/components/watch-video-playlist/watch-video-playlist.js
@@ -82,17 +82,10 @@ export default Vue.extend({
}
},
mounted: function () {
- if (!process.env.IS_ELECTRON) {
+ if (!process.env.IS_ELECTRON || this.backendPreference === 'invidious') {
this.getPlaylistInformationInvidious()
} else {
- switch (this.backendPreference) {
- case 'local':
- this.getPlaylistInformationLocal()
- break
- case 'invidious':
- this.getPlaylistInformationInvidious()
- break
- }
+ this.getPlaylistInformationLocal()
}
if ('mediaSession' in navigator) {
diff --git a/src/renderer/views/Channel/Channel.js b/src/renderer/views/Channel/Channel.js
index f25c0e19..ebb899c8 100644
--- a/src/renderer/views/Channel/Channel.js
+++ b/src/renderer/views/Channel/Channel.js
@@ -181,20 +181,13 @@ export default Vue.extend({
this.apiUsed = ''
this.isLoading = true
- if (!process.env.IS_ELECTRON) {
- this.getVideoInformationInvidious()
+ if (!process.env.IS_ELECTRON || this.backendPreference === 'invidious') {
+ this.getChannelInfoInvidious()
+ this.getPlaylistsInvidious()
} else {
- switch (this.backendPreference) {
- case 'local':
- this.getChannelInfoLocal()
- this.getChannelVideosLocal()
- this.getPlaylistsLocal()
- break
- case 'invidious':
- this.getChannelInfoInvidious()
- this.getPlaylistsInvidious()
- break
- }
+ this.getChannelInfoLocal()
+ this.getChannelVideosLocal()
+ this.getPlaylistsLocal()
}
},
@@ -237,20 +230,13 @@ export default Vue.extend({
this.currentTab = this.$route.params.currentTab ?? 'videos'
this.isLoading = true
- if (!process.env.IS_ELECTRON) {
- this.getVideoInformationInvidious()
+ if (!process.env.IS_ELECTRON || this.backendPreference === 'invidious') {
+ this.getChannelInfoInvidious()
+ this.getPlaylistsInvidious()
} else {
- switch (this.backendPreference) {
- case 'local':
- this.getChannelInfoLocal()
- this.getChannelVideosLocal()
- this.getPlaylistsLocal()
- break
- case 'invidious':
- this.getChannelInfoInvidious()
- this.getPlaylistsInvidious()
- break
- }
+ this.getChannelInfoLocal()
+ this.getChannelVideosLocal()
+ this.getPlaylistsLocal()
}
},
methods: {
diff --git a/src/renderer/views/Settings/Settings.vue b/src/renderer/views/Settings/Settings.vue
index 0039eeac..cd6b4955 100644
--- a/src/renderer/views/Settings/Settings.vue
+++ b/src/renderer/views/Settings/Settings.vue
@@ -7,7 +7,7 @@