diff --git a/addon/moch/moch.js b/addon/moch/moch.js index e64b993..f826843 100644 --- a/addon/moch/moch.js +++ b/addon/moch/moch.js @@ -164,14 +164,13 @@ function processMochResults(streams, config, results) { return errorResults; } - const includeTorrentLinks = options.includeTorrentLinks(config); const excludeDownloadLinks = options.excludeDownloadLinks(config); const mochResults = results.filter(result => result?.mochStreams); const cachedStreams = mochResults .reduce((resultStreams, mochResult) => populateCachedLinks(resultStreams, mochResult, config), streams); const resultStreams = excludeDownloadLinks ? cachedStreams : populateDownloadLinks(cachedStreams, mochResults, config); - return includeTorrentLinks ? resultStreams : resultStreams.filter(stream => stream.url); + return resultStreams.filter(stream => stream.url); } function populateCachedLinks(streams, mochResult, config) { diff --git a/addon/moch/options.js b/addon/moch/options.js index 9b793fd..31567bf 100644 --- a/addon/moch/options.js +++ b/addon/moch/options.js @@ -9,10 +9,6 @@ export const DebridOptions = { key: 'nocatalog', description: 'Don\'t show debrid catalog' }, - torrentLinks: { - key: 'torrentlinks', - description: 'Show P2P torrent links for uncached' - } } } @@ -20,10 +16,6 @@ export function excludeDownloadLinks(config) { return config[DebridOptions.key]?.includes(DebridOptions.options.noDownloadLinks.key); } -export function includeTorrentLinks(config) { - return config[DebridOptions.key]?.includes(DebridOptions.options.torrentLinks.key); -} - export function showDebridCatalog(config) { return !config[DebridOptions.key]?.includes(DebridOptions.options.noCatalog.key); }