Tweak aspect ratio logic and fix proxy logic

This commit is contained in:
Preston 2021-01-17 11:09:51 -05:00
parent 41917b8ba4
commit ce115d2737
2 changed files with 5 additions and 5 deletions

View File

@ -286,7 +286,7 @@ export default Vue.extend({
return return
} }
if (videoWidth < videoHeight) { if (videoWidth <= videoHeight) {
this.player.fluid(false) this.player.fluid(false)
this.player.aspectRatio('16:9') this.player.aspectRatio('16:9')
} }

View File

@ -41,7 +41,7 @@ const actions = {
duration: '' duration: ''
} }
let agent = null let agent = {}
const settings = rootState.settings const settings = rootState.settings
const useProxy = settings.useProxy const useProxy = settings.useProxy
@ -161,10 +161,10 @@ const actions = {
}) })
break break
} }
}
options = { options = {
requestOptions: { agent } requestOptions: { agent }
}
} }
let filter = await ytsr.getFilters(payload.query, options) let filter = await ytsr.getFilters(payload.query, options)