fixed default bitrate being null

This commit is contained in:
RemixDev 2022-01-13 09:42:31 +01:00
parent 1563272d92
commit e6a8b0f65b
2 changed files with 2 additions and 2 deletions

2
server/dist/app.js vendored

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,7 @@ const handler: ApiHandler['handler'] = async (req, res) => {
const url = req.body.url.split(/[\s;]+/)
let bitrate = req.body.bitrate
if (bitrate === 'null') bitrate = getSettings().settings.maxBitrate
if (bitrate === 'null' || bitrate === null) bitrate = getSettings().settings.maxBitrate
let obj: any
try {