order moch catalog ascending

This commit is contained in:
TheBeastLT
2022-03-15 14:53:14 +01:00
parent a5ff0edc23
commit 7b38ba179d
4 changed files with 4 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ async function getItemMeta(itemId, apiKey) {
.map((file, index) => ({
id: `${KEY}:${torrent.id}:${index}`,
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}` }]
}))
}))