mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-27 08:52:10 +00:00
Merge branch 'main' into main
This commit is contained in:
commit
db65da7db8
|
@ -102,6 +102,7 @@ export default function({ r, host, audioFormat, isAudioOnly, isAudioMuted, disab
|
|||
filename: `${r.audioFilename}.${audioFormat}`,
|
||||
isAudioOnly: true,
|
||||
audioFormat,
|
||||
audioBitrate
|
||||
})
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue