[addon] use single stream property for debrid catalogs

This commit is contained in:
TheBeastLT
2021-02-06 10:07:41 +01:00
parent cbfac1d96b
commit f49786d9c2
4 changed files with 8 additions and 13 deletions

View File

@@ -61,9 +61,7 @@ async function getItemMeta(itemId, apiKey, ip) {
id: `${KEY}:${file.id}:${index}`,
title: file.name,
released: new Date(file.created_at * 1000 - index).toISOString(),
streams: [
{ url: file.stream_link || file.link }
]
stream: { url: file.stream_link || file.link }
}))
}))
}