mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[addon] fixes 4k sorting
This commit is contained in:
@@ -59,7 +59,14 @@ function extractQuality(title) {
|
|||||||
const qualityMatch = title.match(/📺 (.*)/);
|
const qualityMatch = title.match(/📺 (.*)/);
|
||||||
const qualityDesc = qualityMatch && qualityMatch[1];
|
const qualityDesc = qualityMatch && qualityMatch[1];
|
||||||
const resolutionMatch = qualityDesc && qualityDesc.match(/\d+p/);
|
const resolutionMatch = qualityDesc && qualityDesc.match(/\d+p/);
|
||||||
return resolutionMatch && resolutionMatch[0] || qualityDesc;
|
if (resolutionMatch) {
|
||||||
|
return resolutionMatch[0];
|
||||||
|
} else if (/8k/i.test(qualityDesc)) {
|
||||||
|
return '4320p'
|
||||||
|
} else if (/4k|uhd/i.test(qualityDesc)) {
|
||||||
|
return '2060p'
|
||||||
|
}
|
||||||
|
return qualityDesc;
|
||||||
}
|
}
|
||||||
|
|
||||||
function extractSeeders(title) {
|
function extractSeeders(title) {
|
||||||
|
|||||||
Reference in New Issue
Block a user