Merge branch 'main' into main

This commit is contained in:
Mubi 2025-01-19 23:33:04 -03:00 committed by GitHub
commit db65da7db8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -102,6 +102,7 @@ export default function({ r, host, audioFormat, isAudioOnly, isAudioMuted, disab
filename: `${r.audioFilename}.${audioFormat}`, filename: `${r.audioFilename}.${audioFormat}`,
isAudioOnly: true, isAudioOnly: true,
audioFormat, audioFormat,
audioBitrate
}) })
} }
break; break;

View file

@ -30,7 +30,7 @@ export default async function(obj) {
if (!postId) return { error: "fetch.short_link" }; if (!postId) return { error: "fetch.short_link" };
// should always be /video/, even for photos // 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: { headers: {
"user-agent": genericUserAgent, "user-agent": genericUserAgent,
cookie, cookie,