diff --git a/package.json b/package.json index f38ac0c..85c5bb3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jackettio", - "version": "1.6.1", + "version": "1.6.2", "description": "Jackett and Debrid on Stremio", "main": "src/index.js", "type": "module", diff --git a/src/lib/jackettio.js b/src/lib/jackettio.js index a7f7c28..a89dcaf 100644 --- a/src/lib/jackettio.js +++ b/src/lib/jackettio.js @@ -370,7 +370,7 @@ export async function getStreams(userConfig, type, stremioId, publicUrl){ } return torrents.map(torrent => { - const file = getFile(torrent.infos.files || [], type, season, episode); + const file = getFile(torrent.infos.files || [], type, season, episode) || {}; const quality = torrent.quality > 0 ? config.qualities.find(q => q.value == torrent.quality).label : ''; const rows = [torrent.name]; if(type == 'series' && file.name)rows.push(file.name);