mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-01-11 22:40:22 +00:00
fix playing TB cloud files due to link cacheing, close #328
This commit is contained in:
parent
0401828b2d
commit
e3f1855a97
1 changed files with 3 additions and 3 deletions
|
|
@ -62,7 +62,7 @@ export async function getItemMeta(itemId, apiKey) {
|
|||
id: `${KEY}:${itemId}:${file.id}`,
|
||||
title: file.name,
|
||||
released: new Date(createDate.getTime() - index).toISOString(),
|
||||
streams: [{ url: `${apiKey}/null/${itemId}-${file.id}/null` }]
|
||||
streams: [{ url: `${apiKey}/${itemId}-${file.id}/null/null` }]
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
|
@ -88,8 +88,8 @@ export async function resolve({ ip, apiKey, infoHash, cachedEntryInfo, fileIndex
|
|||
}
|
||||
|
||||
async function _resolve(apiKey, infoHash, cachedEntryInfo, fileIndex, ip) {
|
||||
if (infoHash === 'null') {
|
||||
const [type, rootId, fileId] = cachedEntryInfo.split('-');
|
||||
if (infoHash?.includes('-')) {
|
||||
const [type, rootId, fileId] = infoHash.split('-');
|
||||
return getDownloadLink(apiKey, type, rootId, fileId, ip);
|
||||
}
|
||||
const torrent = await _createOrFindTorrent(apiKey, infoHash);
|
||||
|
|
|
|||
Loading…
Reference in a new issue