Tweak default quality logic
This commit is contained in:
parent
91069658c8
commit
cb6badd6c9
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue