mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-03-11 17:15:37 +00:00
display eng lang for dub anime
This commit is contained in:
parent
8e0cd5ba14
commit
9013ab1d04
1 changed files with 2 additions and 3 deletions
|
|
@ -73,10 +73,9 @@ function getLanguages(record, torrentInfo, fileInfo) {
|
|||
const dubbed = torrentInfo.dubbed || fileInfo.dubbed;
|
||||
let languages = Array.from(new Set([].concat(torrentLanguages).concat(fileLanguages).concat(providerLanguages)));
|
||||
if (record.kitsuId || record.torrent.type === Type.ANIME) {
|
||||
// no need to display japanese for anime or english if anime is dubbed
|
||||
// no need to display japanese for anime
|
||||
languages = languages.concat(dubbed ? ['dubbed'] : [])
|
||||
.filter(lang => lang !== 'japanese')
|
||||
.filter(lang => dubbed && lang !== 'english' || !dubbed);
|
||||
.filter(lang => lang !== 'japanese');
|
||||
}
|
||||
if (languages.length === 1 && languages.includes('english')) {
|
||||
// no need to display languages if only english is present
|
||||
|
|
|
|||
Loading…
Reference in a new issue