mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[addon] adds initial version for languages visualization
This commit is contained in:
@@ -82,9 +82,9 @@ function filterByProvider(streams, providers) {
|
||||
return streams;
|
||||
}
|
||||
return streams.filter(stream => {
|
||||
const parts = stream.title.split('\n');
|
||||
const provider = parts[parts.length - 2].match(/\w+$/)[0];
|
||||
return providers.includes(provider.toLowerCase());
|
||||
const match = stream.title.match(/[🛈⚙].* ([^ \n]+)/);
|
||||
const provider = match && match[1].toLowerCase();
|
||||
return providers.includes(provider);
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user