mirror of
https://github.com/p-stream/providers.git
synced 2026-04-14 12:20:21 +00:00
Update filelions.ts
This commit is contained in:
parent
f86bacfb65
commit
f8a4e3723e
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ export const filelionsScraper = makeEmbed({
|
|||
const linksMatch = unpacked.match(/var links=(\{.*?\})/);
|
||||
if (!linksMatch) throw new NotFoundError('Links object not found');
|
||||
|
||||
const links = eval(`(${linksMatch[1]})`);
|
||||
const links = JSON.parse(linksMatch[1]);
|
||||
Object.keys(links).forEach((key) => {
|
||||
if (links[key].startsWith('/stream/')) {
|
||||
links[key] = `https://dinisglows.com${links[key]}`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue