mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
order moch catalog ascending
This commit is contained in:
@@ -66,7 +66,7 @@ async function getItemMeta(itemId, apiKey) {
|
|||||||
.map((file, index) => ({
|
.map((file, index) => ({
|
||||||
id: `${KEY}:${torrent.id}:${index}`,
|
id: `${KEY}:${torrent.id}:${index}`,
|
||||||
title: file.filename,
|
title: file.filename,
|
||||||
released: new Date(torrent.uploadDate * 1000 - index).toISOString(),
|
released: new Date(torrent.uploadDate * 1000 + index).toISOString(),
|
||||||
streams: [{ url: `${apiKey}/${torrent.hash.toLowerCase()}/${encodeURIComponent(file.filename)}/${index}` }]
|
streams: [{ url: `${apiKey}/${torrent.hash.toLowerCase()}/${encodeURIComponent(file.filename)}/${index}` }]
|
||||||
}))
|
}))
|
||||||
}))
|
}))
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ async function getItemMeta(itemId, apiKey, ip) {
|
|||||||
.map((file, index) => ({
|
.map((file, index) => ({
|
||||||
id: `${KEY}:${torrent.id}:${index}`,
|
id: `${KEY}:${torrent.id}:${index}`,
|
||||||
title: file.name,
|
title: file.name,
|
||||||
released: new Date(torrent.created * 1000 - index).toISOString(),
|
released: new Date(torrent.created * 1000 + index).toISOString(),
|
||||||
streams: [{ url: file.downloadUrl }]
|
streams: [{ url: file.downloadUrl }]
|
||||||
}))
|
}))
|
||||||
}))
|
}))
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ async function getItemMeta(itemId, apiKey, ip) {
|
|||||||
.map((file, index) => ({
|
.map((file, index) => ({
|
||||||
id: `${KEY}:${file.id}:${index}`,
|
id: `${KEY}:${file.id}:${index}`,
|
||||||
title: file.name,
|
title: file.name,
|
||||||
released: new Date(file.created_at * 1000 - index).toISOString(),
|
released: new Date(file.created_at * 1000 + index).toISOString(),
|
||||||
streams: [{ url: file.link || file.stream_link }]
|
streams: [{ url: file.link || file.stream_link }]
|
||||||
}))
|
}))
|
||||||
}))
|
}))
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ async function getItemMeta(itemId, apiKey, ip) {
|
|||||||
.map((file, index) => ({
|
.map((file, index) => ({
|
||||||
id: `${KEY}:${torrent.id}:${file.id}`,
|
id: `${KEY}:${torrent.id}:${file.id}`,
|
||||||
title: file.path,
|
title: file.path,
|
||||||
released: new Date(new Date(torrent.added).getTime() - index).toISOString(),
|
released: new Date(new Date(torrent.added).getTime() + index).toISOString(),
|
||||||
streams: [{ url: `${apiKey}/${torrent.hash.toLowerCase()}/null/${file.id - 1}` }]
|
streams: [{ url: `${apiKey}/${torrent.hash.toLowerCase()}/null/${file.id - 1}` }]
|
||||||
}))
|
}))
|
||||||
}))
|
}))
|
||||||
|
|||||||
Reference in New Issue
Block a user