mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-05-19 20:11:44 +00:00
do not lowercase provider when extracting
This commit is contained in:
parent
caa29c8efc
commit
63edde3647
2 changed files with 2 additions and 2 deletions
|
|
@ -233,7 +233,7 @@ function filterByProvider(streams, config) {
|
||||||
return streams;
|
return streams;
|
||||||
}
|
}
|
||||||
return streams.filter(stream => {
|
return streams.filter(stream => {
|
||||||
const provider = extractProvider(stream.title)
|
const provider = extractProvider(stream.title).toLowerCase();
|
||||||
return providers.includes(provider);
|
return providers.includes(provider);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ export function extractSize(title) {
|
||||||
|
|
||||||
export function extractProvider(title) {
|
export function extractProvider(title) {
|
||||||
const match = title.match(/⚙.* ([^ \n]+)/);
|
const match = title.match(/⚙.* ([^ \n]+)/);
|
||||||
return match?.[1]?.toLowerCase();
|
return match?.[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
export function parseSize(sizeText) {
|
export function parseSize(sizeText) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue