enrich metadata for some debrid providers' metas

This commit is contained in:
TheBeastLT
2023-04-25 16:35:45 +02:00
parent cb3f920fb3
commit cb381881a5
6 changed files with 48 additions and 2 deletions

View File

@@ -147,6 +147,7 @@ async function getItemMeta(itemId, apiKey, ip) {
id: `${KEY}:${torrent.id}`,
type: Type.OTHER,
name: torrent.filename,
infoHash: torrent.hash.toLowerCase(),
videos: torrent.files
.filter(file => file.selected)
.filter(file => isVideo(file.path))