mirror of
https://github.com/chrisbenincasa/tunarr.git
synced 2026-04-18 09:03:35 -04:00
refactor: use new transcode configs everywhere (#1028)
This commit is contained in:
committed by
GitHub
parent
ca0ec6a92b
commit
e507b1eb9b
@@ -38,9 +38,14 @@ export const debugFfmpegApiRouter: RouterPluginAsyncCallback = async (
|
||||
const channel = await req.serverCtx.channelDB.getChannel(
|
||||
req.query.channel,
|
||||
);
|
||||
|
||||
if (!channel) {
|
||||
return res.status(404).send();
|
||||
}
|
||||
|
||||
const transcodeConfig =
|
||||
await req.serverCtx.transcodeConfigDB.getChannelConfig(channel.uuid);
|
||||
|
||||
const details = new LocalFileStreamDetails(req.query.path);
|
||||
const streamDetails = await details.getStream();
|
||||
|
||||
@@ -50,6 +55,7 @@ export const debugFfmpegApiRouter: RouterPluginAsyncCallback = async (
|
||||
|
||||
const ffmpeg = new FfmpegStreamFactory(
|
||||
req.serverCtx.settings.ffmpegSettings(),
|
||||
transcodeConfig,
|
||||
channel,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user