Skip to content

best way to save what you love

createStream: removed an outdated variable

wukko9211b3958874
diff --git a/src/modules/stream/manage.js b/src/modules/stream/manage.js
index 842499f1..b731c0b8 100644
--- a/src/modules/stream/manage.js
+++ b/src/modules/stream/manage.js
@@ -24,14 +24,13 @@ export function createStream(obj) {
exp = new Date().getTime() + streamLifespan,
hmac = sha256(`${streamID},${exp},${iv},${secret}`, hmacSalt),
streamData = {
- service: obj.service,
+ exp: exp,
type: obj.type,
urls: obj.u,
+ service: obj.service,
filename: obj.filename,
- exp: exp,
audioFormat: obj.audioFormat,
isAudioOnly: !!obj.isAudioOnly,
- time: obj.time || false,
copy: !!obj.copy,
mute: !!obj.mute,
metadata: obj.fileMetadata || false