mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
add matching with year & type
This commit is contained in:
parent
9237817bd3
commit
e278e82ed5
1 changed files with 2 additions and 0 deletions
|
@ -199,6 +199,8 @@ object APIHolder {
|
||||||
|
|
||||||
val matchingTypes = types?.any { it.name.equals(media.type, true) } == true
|
val matchingTypes = types?.any { it.name.equals(media.type, true) } == true
|
||||||
matchingTitles && matchingTypes && matchingYears
|
matchingTitles && matchingTypes && matchingYears
|
||||||
|
} ?: search.results?.find { media ->
|
||||||
|
(year == null || media.releaseDate == year) && types?.any { it.name.equals(media.type, true) } == true
|
||||||
} ?: return null
|
} ?: return null
|
||||||
|
|
||||||
Tracker(res.malId, res.aniId, res.image, res.cover)
|
Tracker(res.malId, res.aniId, res.image, res.cover)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue