createStream: removed an outdated variable

This commit is contained in:
wukko 2024-03-05 20:45:54 +06:00
parent c22d76444b
commit 9211b39588

View file

@ -24,14 +24,13 @@ export function createStream(obj) {
exp = new Date().getTime() + streamLifespan, exp = new Date().getTime() + streamLifespan,
hmac = sha256(`${streamID},${exp},${iv},${secret}`, hmacSalt), hmac = sha256(`${streamID},${exp},${iv},${secret}`, hmacSalt),
streamData = { streamData = {
service: obj.service, exp: exp,
type: obj.type, type: obj.type,
urls: obj.u, urls: obj.u,
service: obj.service,
filename: obj.filename, filename: obj.filename,
exp: exp,
audioFormat: obj.audioFormat, audioFormat: obj.audioFormat,
isAudioOnly: !!obj.isAudioOnly, isAudioOnly: !!obj.isAudioOnly,
time: obj.time || false,
copy: !!obj.copy, copy: !!obj.copy,
mute: !!obj.mute, mute: !!obj.mute,
metadata: obj.fileMetadata || false metadata: obj.fileMetadata || false