mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
fix ondebaixa lang selector
This commit is contained in:
@@ -118,7 +118,7 @@ function parseTorrentPage(body) {
|
|||||||
magnetLink: magnetLink,
|
magnetLink: magnetLink,
|
||||||
category: parseCategory(category),
|
category: parseCategory(category),
|
||||||
uploadDate: new Date($('time').attr('datetime')),
|
uploadDate: new Date($('time').attr('datetime')),
|
||||||
languages: sanitizePtLanguages(details.find('span:contains(\'Idioma\')')[0].nextSibling.nodeValue)
|
languages: sanitizePtLanguages(details.find('span:contains(\'Idioma\')').next().text())
|
||||||
}));
|
}));
|
||||||
resolve(torrents.filter((x) => x));
|
resolve(torrents.filter((x) => x));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ function isPtDubbed(name) {
|
|||||||
function sanitizePtName(name) {
|
function sanitizePtName(name) {
|
||||||
return name
|
return name
|
||||||
.replace(/(.*)\b(\d{3,4}P)\b(?!.*\d{3,4}[Pp])(.*)/, '$1$3 $2') // add resolution to the end if missing
|
.replace(/(.*)\b(\d{3,4}P)\b(?!.*\d{3,4}[Pp])(.*)/, '$1$3 $2') // add resolution to the end if missing
|
||||||
.replace(/^[[{]?(?:ACESSE.*|WWW\.)?[A-Z]+\.(COM|NET|ORG|TO|TV|ME)\b\s*[-\]}]+[\s.]*/i, '') // replace watermarks
|
.replace(/^[\[{]?(?:ACESSE.*|WWW\.)?[A-Z]+\.(COM|NET|ORG|TO|TV|ME)\b\s*[-\]}]+[\s.]*/i, '') // replace watermarks
|
||||||
.replace(/^(\d*(?:\.\d{1,2})?(?:[4A-Z-]{3,}|P)[-.]+)+/, '') // replace metadata prefixes
|
.replace(/^(\d*(?:\.\d{1,2})?(?:[4A-Z-]{3,}|P)[-.]+)+/, '') // replace metadata prefixes
|
||||||
.replace(/^(COM|NET|ORG|TO|TV|ME)\b\s*-+[\s.]*/, '') // replace dangling site endings
|
.replace(/^(COM|NET|ORG|TO|TV|ME)\b\s*-+[\s.]*/, '') // replace dangling site endings
|
||||||
.trim();
|
.trim();
|
||||||
|
|||||||
Reference in New Issue
Block a user