MoviebaseApp / tmdb-kotlin

🎬 Modern powerful TMDB API to fetch movies and TV shows for Kotlin Multiplatform.
https://www.moviebase.app
Apache License 2.0
205 stars 20 forks source link

withGenres and withoutGenres updated to use TmdbDiscoverFilter #131

Closed P-Stringer closed 8 months ago

P-Stringer commented 8 months ago

When trying to Discover by genre, it wasn't possible to include results from any of the given genres. Essentially the PR updates the withGenres/withoutGenres to make use of the existing TmdbDiscoverFilter which includes a separator ( | = OR, , = AND). This is then used in the joinToString extension function.

ChrisKruegerDev commented 8 months ago

Looks good! Thanks