mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[addon] use single stream property for debrid catalogs
This commit is contained in:
@@ -110,8 +110,9 @@ async function getMochItemMeta(mochKey, itemId, config) {
|
||||
return moch.instance.getItemMeta(itemId, config[moch.key], config.ip)
|
||||
.then(meta => {
|
||||
meta.videos
|
||||
.map(video => video.streams)
|
||||
.reduce((a, b) => a.concat(b), [])
|
||||
// .map(video => video.streams)
|
||||
// .reduce((a, b) => a.concat(b), [])
|
||||
.map(video => video.stream)
|
||||
.filter(stream => !stream.url.startsWith('http'))
|
||||
.forEach(stream => stream.url = `${RESOLVER_HOST}/${moch.key}/${stream.url}`)
|
||||
return meta;
|
||||
|
||||
Reference in New Issue
Block a user