Tweak default quality logic

This commit is contained in:
Preston 2020-09-26 12:10:56 -04:00
parent 91069658c8
commit cb6badd6c9
1 changed files with 6 additions and 2 deletions

View File

@ -102,7 +102,7 @@ export default Vue.extend({
}, },
defaultQuality: function () { defaultQuality: function () {
return this.$store.getters.getDefaultQuality return parseInt(this.$store.getters.getDefaultQuality)
}, },
defaultVideoFormat: function () { defaultVideoFormat: function () {
@ -212,7 +212,7 @@ export default Vue.extend({
} }
}, },
determineDefaultQuality: function (label) { determineDefaultQuality: function () {
if (this.useDash) { if (this.useDash) {
return return
} }
@ -250,6 +250,10 @@ export default Vue.extend({
qualityNumber = 4320 qualityNumber = 4320
} }
if (this.defaultQuality === qualityNumber) {
this.selectedDefaultQuality = source.qualityLabel
}
if (index < (this.sourceList.length - 1)) { if (index < (this.sourceList.length - 1)) {
let upperQualityNumber = parseInt(reversedList[index + 1].qualityLabel.replace(/p|k/, '')) let upperQualityNumber = parseInt(reversedList[index + 1].qualityLabel.replace(/p|k/, ''))
if (upperQualityNumber === 4) { if (upperQualityNumber === 4) {