mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Don't send m3u8 containing non existing chunks
This commit is contained in:
@@ -141,9 +141,20 @@ export function makeUploadRequest (options: CommonRequestParams & {
|
||||
if (!value) return
|
||||
|
||||
if (Array.isArray(value)) {
|
||||
req.attach(attach, buildAbsoluteFixturePath(value[0]), value[1])
|
||||
req.attach(
|
||||
attach,
|
||||
value[0] instanceof Buffer
|
||||
? value[0]
|
||||
: buildAbsoluteFixturePath(value[0]),
|
||||
value[1]
|
||||
)
|
||||
} else {
|
||||
req.attach(attach, buildAbsoluteFixturePath(value))
|
||||
req.attach(
|
||||
attach,
|
||||
value instanceof Buffer
|
||||
? value
|
||||
: buildAbsoluteFixturePath(value)
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user