mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-03-11 17:15:37 +00:00
filter horriblesubs entries having a magnetlink
This commit is contained in:
parent
a4a675ab2a
commit
a83c75a702
2 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue