From 035825bc0555fa2e1c2084a407ee14d04be97445 Mon Sep 17 00:00:00 2001 From: jj Date: Mon, 20 Jan 2025 14:38:55 +0000 Subject: [PATCH] api: cache original request parameters in stream --- api/src/processing/match-action.js | 3 ++- api/src/stream/manage.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/src/processing/match-action.js b/api/src/processing/match-action.js index 64f86836..19896ceb 100644 --- a/api/src/processing/match-action.js +++ b/api/src/processing/match-action.js @@ -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 = {}; diff --git a/api/src/stream/manage.js b/api/src/stream/manage.js index 79b5c1db..3323ce5d 100644 --- a/api/src/stream/manage.js +++ b/api/src/stream/manage.js @@ -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