Merge branch 'main' into patch-1

This commit is contained in:
lostdusty 2025-01-20 01:13:09 -03:00 committed by GitHub
commit a16052d9ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{
"name": "@imput/cobalt-api",
"description": "save what you love",
"version": "10.5.2",
"version": "10.5.4",
"author": "imput",
"exports": "./src/cobalt.js",
"type": "module",

View File

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

View File

@ -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,

View File

@ -1,6 +1,6 @@
{
"name": "@imput/cobalt-web",
"version": "10.5",
"version": "10.5.1",
"type": "module",
"private": true,
"scripts": {