From cb6badd6c96862a46202798c4ebed21b0e174787 Mon Sep 17 00:00:00 2001 From: Preston Date: Sat, 26 Sep 2020 12:10:56 -0400 Subject: [PATCH] Tweak default quality logic --- .../components/ft-video-player/ft-video-player.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 09485def..e1b92212 100644 --- a/src/renderer/components/ft-video-player/ft-video-player.js +++ b/src/renderer/components/ft-video-player/ft-video-player.js @@ -102,7 +102,7 @@ export default Vue.extend({ }, defaultQuality: function () { - return this.$store.getters.getDefaultQuality + return parseInt(this.$store.getters.getDefaultQuality) }, defaultVideoFormat: function () { @@ -212,7 +212,7 @@ export default Vue.extend({ } }, - determineDefaultQuality: function (label) { + determineDefaultQuality: function () { if (this.useDash) { return } @@ -250,6 +250,10 @@ export default Vue.extend({ qualityNumber = 4320 } + if (this.defaultQuality === qualityNumber) { + this.selectedDefaultQuality = source.qualityLabel + } + if (index < (this.sourceList.length - 1)) { let upperQualityNumber = parseInt(reversedList[index + 1].qualityLabel.replace(/p|k/, '')) if (upperQualityNumber === 4) {