MoviebaseApp / tmdb-kotlin

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

Crash due to missing gender #4

Closed edmundjohnson closed 3 years ago

edmundjohnson commented 3 years ago

When calling:

Tmdb3.find.find("tt10919380", "en", TmdbExternalSource.IMDB)

I get an error:

app.moviebase.tmdb.model.TmdbGender does not contain element with name '3'

It would probably be fixed by adding the following to TmdbGender:

@SerialName("3")
NON_BINARY(3),

Thank you!

ChrisKruegerDev commented 3 years ago

Hi @edmundjohnson,

Thank you very much for the bug report :)! I added the gender and more tests in version 0.5.1.

edmundjohnson commented 3 years ago

You're welcome! And thanks for the fix, all working now.