diff --git a/addon/moch/alldebrid.js b/addon/moch/alldebrid.js index f3dbea7..954153a 100644 --- a/addon/moch/alldebrid.js +++ b/addon/moch/alldebrid.js @@ -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}` }] })) })) diff --git a/addon/moch/debridlink.js b/addon/moch/debridlink.js index 92dfb95..847e39a 100644 --- a/addon/moch/debridlink.js +++ b/addon/moch/debridlink.js @@ -65,7 +65,7 @@ async function getItemMeta(itemId, apiKey, ip) { .map((file, index) => ({ id: `${KEY}:${torrent.id}:${index}`, title: file.name, - released: new Date(torrent.created * 1000 + index).toISOString(), + released: new Date(torrent.created * 1000 - index).toISOString(), streams: [{ url: file.downloadUrl }] })) })) diff --git a/addon/moch/premiumize.js b/addon/moch/premiumize.js index a1d59d5..0041eda 100644 --- a/addon/moch/premiumize.js +++ b/addon/moch/premiumize.js @@ -70,7 +70,7 @@ async function getItemMeta(itemId, apiKey, ip) { .map((file, index) => ({ id: `${KEY}:${file.id}:${index}`, 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 }] })) })) diff --git a/addon/moch/realdebrid.js b/addon/moch/realdebrid.js index 2696585..d8b51c6 100644 --- a/addon/moch/realdebrid.js +++ b/addon/moch/realdebrid.js @@ -136,7 +136,7 @@ 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(), + released: new Date(new Date(torrent.added).getTime() - index).toISOString(), streams: [{ url: `${apiKey}/${torrent.hash.toLowerCase()}/null/${file.id - 1}` }] })) }))