fixed default bitrate being null
This commit is contained in:
parent
1563272d92
commit
e6a8b0f65b
2
server/dist/app.js
vendored
2
server/dist/app.js
vendored
File diff suppressed because one or more lines are too long
@ -11,7 +11,7 @@ const handler: ApiHandler['handler'] = async (req, res) => {
|
|||||||
|
|
||||||
const url = req.body.url.split(/[\s;]+/)
|
const url = req.body.url.split(/[\s;]+/)
|
||||||
let bitrate = req.body.bitrate
|
let bitrate = req.body.bitrate
|
||||||
if (bitrate === 'null') bitrate = getSettings().settings.maxBitrate
|
if (bitrate === 'null' || bitrate === null) bitrate = getSettings().settings.maxBitrate
|
||||||
let obj: any
|
let obj: any
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user