diff --git a/src/modules/services/tiktok.js b/src/modules/services/tiktok.js index 427b0f72..20e38b6f 100644 --- a/src/modules/services/tiktok.js +++ b/src/modules/services/tiktok.js @@ -11,7 +11,11 @@ export default async function(obj) { return { error: loc(obj.lang, 'ErrorCantConnectToServiceAPI', 'tiktok') }; }); html = html.body - obj.postId = html.split('video/')[1].split('?')[0] + if (!html.includes('')) { + obj.postId = html.split('video/')[1].split('?')[0] + } else { + obj.postId = html.split('aweme/detail/')[1].split('?')[0] + } } let url = `https://tiktok.com/@video/video/${obj.postId}` let html = await got.get(url, { headers: { "user-agent": genericUserAgent } });