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] }