diff --git a/src/modules/processing/match.js b/src/modules/processing/match.js index 3278c18f..5dfd2765 100644 --- a/src/modules/processing/match.js +++ b/src/modules/processing/match.js @@ -111,7 +111,6 @@ export default async function(host, patternMatch, lang, obj) { r = await tiktok({ postId: patternMatch.postId, id: patternMatch.id, - user: patternMatch.user, fullAudio: obj.isTTFullAudio, isAudioOnly: isAudioOnly, h265: obj.tiktokH265 diff --git a/src/modules/processing/services/tiktok.js b/src/modules/processing/services/tiktok.js index 66933dc1..f0e80c04 100644 --- a/src/modules/processing/services/tiktok.js +++ b/src/modules/processing/services/tiktok.js @@ -8,9 +8,8 @@ export const cookie = new Cookie({}) export default async function(obj) { let postId = obj.postId - let username = obj.user - if (!username || !postId) { + if (!postId) { let html = await fetch(`${shortDomain}${obj.id}`, { redirect: "manual", headers: { @@ -22,14 +21,13 @@ export default async function(obj) { if (html.startsWith('