From 6b85c66b046542aee7d6a7b80179a16ee4578cd9 Mon Sep 17 00:00:00 2001 From: dargy Date: Fri, 15 Mar 2024 15:55:48 -0500 Subject: [PATCH] fix: change api URL due to content-length being 0 thanks to #4 --- src/services/tiktok.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/services/tiktok.ts b/src/services/tiktok.ts index 6c4785c..09f1b41 100644 --- a/src/services/tiktok.ts +++ b/src/services/tiktok.ts @@ -16,8 +16,7 @@ export async function grabAwemeId(videoId: string): Promise { } export async function getVideoInfo(awemeId: String): Promise { - // https://api16-normal-c-useast1a.tiktokv.com/aweme/v1/feed/7311925846594342175 - const res: Response = await fetch('https://api16-normal-c-useast1a.tiktokv.com/aweme/v1/feed/?aweme_id=' + awemeId, { + const res: Response = await fetch('https://api19-normal-c-useast2a.tiktokv.com/aweme/v1/feed/?aweme_id=' + awemeId, { cf: { cacheEverything: true, cacheTtlByStatus: { "200-299": 86400, 404: 1, "500-599": 0 },