add matching with year & type
This commit is contained in:
parent
9237817bd3
commit
e278e82ed5
|
@ -199,6 +199,8 @@ object APIHolder {
|
|||
|
||||
val matchingTypes = types?.any { it.name.equals(media.type, true) } == true
|
||||
matchingTitles && matchingTypes && matchingYears
|
||||
} ?: search.results?.find { media ->
|
||||
(year == null || media.releaseDate == year) && types?.any { it.name.equals(media.type, true) } == true
|
||||
} ?: return null
|
||||
|
||||
Tracker(res.malId, res.aniId, res.image, res.cover)
|
||||
|
|
Loading…
Reference in New Issue