mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
filter horriblesubs entries having a magnetlink
This commit is contained in:
@@ -21,7 +21,7 @@ function initiateCache() {
|
||||
store: mangodbStore,
|
||||
uri: MONGO_URI,
|
||||
options: {
|
||||
collection: 'torrentio-addon',
|
||||
collection: 'torrentio_addon_collection',
|
||||
ttl: STREAM_TTL
|
||||
},
|
||||
ttl: STREAM_TTL,
|
||||
|
||||
@@ -136,6 +136,7 @@ async function _parseShowData(showData) {
|
||||
|
||||
return Promise.all([].concat(showData.singleEpisodes).concat(showData.packEpisodes)
|
||||
.map((episodeInfo) => episodeInfo.mirrors
|
||||
.filter((mirror) => mirror.magnetLink && mirror.magnetLink.length)
|
||||
.map((mirror) => ({
|
||||
provider: NAME,
|
||||
...mirror,
|
||||
|
||||
Reference in New Issue
Block a user