return only streams property for moch meta

This commit is contained in:
TheBeastLT
2022-03-09 15:54:39 +01:00
parent 5100751c19
commit 29b232318e
5 changed files with 9 additions and 10 deletions

View File

@@ -137,7 +137,7 @@ async function getItemMeta(itemId, apiKey, ip) {
id: `${KEY}:${torrent.id}:${file.id}`,
title: file.path,
released: new Date(new Date(torrent.added).getTime() - index).toISOString(),
stream: { url: `${apiKey}/${torrent.hash.toLowerCase()}/null/${file.id - 1}` }
streams: [{ url: `${apiKey}/${torrent.hash.toLowerCase()}/null/${file.id - 1}` }]
}))
}))
}