mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fixed tracker on dub
This commit is contained in:
parent
7f7c81828a
commit
10bc688eaf
1 changed files with 5 additions and 1 deletions
|
@ -1538,7 +1538,11 @@ class ResultViewModel2 : ViewModel() {
|
||||||
this.name,
|
this.name,
|
||||||
this.japName
|
this.japName
|
||||||
).filter { it.length > 2 }
|
).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),
|
TrackerType.getTypes(this.type),
|
||||||
this.year
|
this.year
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue