From ce7d553beb75647993e7bcab694fa00bfb8a75d9 Mon Sep 17 00:00:00 2001 From: jj Date: Sun, 12 Jan 2025 16:43:55 +0000 Subject: [PATCH 1/2] api/match-action: pass audio bitrate when creating tiktok stream fixes #996 --- api/src/processing/match-action.js | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/processing/match-action.js b/api/src/processing/match-action.js index 5c728626..64f86836 100644 --- a/api/src/processing/match-action.js +++ b/api/src/processing/match-action.js @@ -102,6 +102,7 @@ export default function({ r, host, audioFormat, isAudioOnly, isAudioMuted, disab filename: `${r.audioFilename}.${audioFormat}`, isAudioOnly: true, audioFormat, + audioBitrate }) } break; From ef687750b41af5807c84280aa12ee9bb9947ce85 Mon Sep 17 00:00:00 2001 From: wukko Date: Sat, 18 Jan 2025 17:02:24 +0600 Subject: [PATCH 2/2] api/tiktok: update domain because dns records for main one are gone closes #1057 --- api/src/processing/services/tiktok.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/processing/services/tiktok.js b/api/src/processing/services/tiktok.js index 6978e071..6fec01d8 100644 --- a/api/src/processing/services/tiktok.js +++ b/api/src/processing/services/tiktok.js @@ -30,7 +30,7 @@ export default async function(obj) { if (!postId) return { error: "fetch.short_link" }; // should always be /video/, even for photos - const res = await fetch(`https://tiktok.com/@i/video/${postId}`, { + const res = await fetch(`https://www.tiktok.com/@i/video/${postId}`, { headers: { "user-agent": genericUserAgent, cookie,