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", "name": "@imput/cobalt-api",
"description": "save what you love", "description": "save what you love",
"version": "10.5.2", "version": "10.5.4",
"author": "imput", "author": "imput",
"exports": "./src/cobalt.js", "exports": "./src/cobalt.js",
"type": "module", "type": "module",

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,

View File

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