fixed tracker on dub

This commit is contained in:
LagradOst 2023-09-11 14:29:30 +02:00
parent 7f7c81828a
commit 10bc688eaf

View file

@ -1538,7 +1538,11 @@ class ResultViewModel2 : ViewModel() {
this.name,
this.japName
).filter { it.length > 2 }
.distinct(), // the reason why we filter is due to not wanting smth like " " or "?"
.distinct().map {
// this actually would be nice if we improved a bit as 3rd season == season 3 == III ect
// right now it just removes the dubbed status
it.lowercase().replace(Regex("""\(?[ds]ub(bed)?\)?(\s|$)""") , "").trim()
},
TrackerType.getTypes(this.type),
this.year
)