api: cache original request parameters in stream

This commit is contained in:
jj 2025-01-20 14:38:55 +00:00
parent ec0d773792
commit 035825bc05
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

@ -15,7 +15,8 @@ export default function({ r, host, audioFormat, isAudioOnly, isAudioMuted, disab
filename: r.filenameAttributes ?
createFilename(r.filenameAttributes, filenameStyle, isAudioOnly, isAudioMuted) : r.filename,
fileMetadata: !disableMetadata ? r.fileMetadata : false,
requestIP
requestIP,
originalRequest: r.originalRequest
},
params = {};

View file

@ -40,6 +40,7 @@ export function createStream(obj) {
audioFormat: obj.audioFormat,
isHLS: obj.isHLS || false,
originalRequest: obj.parameters
};
// FIXME: this is now a Promise, but it is not awaited