fix(transcode): restore official cliUtils and fix transcode progress and log flooding

This commit is contained in:
PickleRick committed 2026-09-30 23:56:53 +02:00
1 parent 88ecf9a847
commit 2daa75df60
6 files changed
+99 -23

No files matched your search

+11
View File
@@ -105,6 +105,17 @@ download_flow_helpers() {
curl -fsSL "$official_fu" -o "${dest}/fileUtils.js" || true
fi
# Restore official Tdarr cliUtils.js if it was previously overwritten by a mock
local official_cu="https://raw.githubusercontent.com/HaveAGitGat/Tdarr_Plugins/master/FlowPlugins/FlowHelpers/1.0.0/cliUtils.js"
if [[ -f "${dest}/cliUtils.js" ]]; then
if grep -q "Local mock of Tdarr" "${dest}/cliUtils.js" || ! grep -q "ffmpegParser" "${dest}/cliUtils.js"; then
echo " 🔄 Restoring official Tdarr cliUtils.js..."
curl -fsSL "$official_cu" -o "${dest}/cliUtils.js" || true
fi
else
curl -fsSL "$official_cu" -o "${dest}/cliUtils.js" || true
fi
# Download our custom copyWithProgress helper
local url="${RAW}/FlowHelpers/1.0.0/copyWithProgress.js"
if curl -fsSL "$url" -o "${dest}/copyWithProgress.js"; then