From ab7e38deb5caacafa24f6305f8b4656069038c0a Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 28 Sep 2022 16:19:21 +0600 Subject: [PATCH] eat shit tiktok --- package.json | 2 +- src/modules/services/tiktok.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index aa320744..0c0d69eb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "cobalt", "description": "save what you love", - "version": "3.5.4", + "version": "3.5.5", "author": "wukko", "exports": "./src/cobalt.js", "type": "module", diff --git a/src/modules/services/tiktok.js b/src/modules/services/tiktok.js index 32eba310..006d0905 100644 --- a/src/modules/services/tiktok.js +++ b/src/modules/services/tiktok.js @@ -7,7 +7,7 @@ let userAgent = genericUserAgent.split(' Chrome/1')[0] let config = { tiktok: { short: "https://vt.tiktok.com/", - api: "https://api.tiktokv.com/aweme/v1/multi/aweme/detail/?aweme_ids=%5B{postId}%5D&version_code=26.2.0&app_name=musical_ly&channel=App&device_id=null&os_version=14.4.2&device_platform=iphone&device_type=iPhone9", // thanks to https://github.com/wukko/cobalt/pull/41#issue-1380090574 + api: "https://api.tiktokv.com/aweme/v1/feed/?aweme_id={postId}&version_code=262&app_name=musical_ly&channel=App&device_id=null&os_version=14.4.2&device_platform=iphone&device_type=iPhone9", // thanks to https://github.com/wukko/cobalt/pull/41#issue-1380090574 }, douyin: { short: "https://v.douyin.com/", @@ -17,7 +17,7 @@ let config = { function selector(j, h) { switch (h) { case "tiktok": - return j["aweme_details"][0] + return j["aweme_list"][0] case "douyin": return j['item_list'][0] }