mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-12 13:17:45 +02:00
tiktok: fix shortlink parsing
This commit is contained in:
@ -20,7 +20,8 @@ export default async function(obj) {
|
||||
if (!html) return { error: 'ErrorCouldntFetch' };
|
||||
|
||||
if (html.startsWith('<a href="https://')) {
|
||||
const { patternMatch } = extract(html.split('<a href="https://')[1].split('?')[0]);
|
||||
const extractedURL = html.split('<a href="')[1].split('?')[0];
|
||||
const { patternMatch } = extract(extractedURL);
|
||||
postId = patternMatch.postId
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user