mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[addon] use single stream property for debrid catalogs
This commit is contained in:
@@ -111,10 +111,8 @@ async function getItemMeta(itemId, apiKey, ip) {
|
||||
.map((file, index) => ({
|
||||
id: `${KEY}:${torrent.id}:${file.id}`,
|
||||
title: file.path,
|
||||
released: new Date(new Date(torrent.added).getTime() + index).toISOString(),
|
||||
streams: [
|
||||
{ url: `${apiKey}/${torrent.hash.toLowerCase()}/null/${file.id - 1}` }
|
||||
]
|
||||
released: new Date(new Date(torrent.added).getTime() - index).toISOString(),
|
||||
stream: { url: `${apiKey}/${torrent.hash.toLowerCase()}/null/${file.id - 1}` }
|
||||
}))
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user