mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
25 lines
703 B
JavaScript
25 lines
703 B
JavaScript
const DebridOptions = {
|
|
key: 'debridoptions',
|
|
options: {
|
|
noDownloadLinks: {
|
|
key: 'nodownloadlinks',
|
|
description: 'Don\'t show download to debrid links'
|
|
},
|
|
torrentLinks: {
|
|
key: 'torrentlinks',
|
|
description: 'Show P2P torrent links for uncached'
|
|
}
|
|
}
|
|
}
|
|
|
|
function excludeDownloadLinks(config) {
|
|
return config[DebridOptions.key] && config[DebridOptions.key]
|
|
.includes(DebridOptions.options.noDownloadLinks.key);
|
|
}
|
|
|
|
function includeTorrentLinks(config) {
|
|
return config[DebridOptions.key] && config[DebridOptions.key]
|
|
.includes(DebridOptions.options.torrentLinks.key);
|
|
}
|
|
|
|
module.exports = { DebridOptions, excludeDownloadLinks, includeTorrentLinks } |