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

Possibility to get a movie logo #12

Closed ghost closed 2 years ago

ghost commented 2 years ago

It would be great to add the opportunity to get movie logos. Thanks a lot.

https://image.tmdb.org/t/p/original/5TjlgYl3DTYRIOlpjqylAgcHVBF.png

https://api.themoviedb.org/3/movie/299534/images?api_key=84bf934f6f348e09a8de2b9b556c09ae&language=en-US&include_image_language=en

movie_logos

ChrisKruegerDev commented 2 years ago

Hey, you can build the URL by the TmdbImageUrlBuilder class. For example: val url = TmdbImageUrlBuilder.buildPoster(item = movie, width = 200)

The library Glide or Picasso can be used for loading the image URL.

ghost commented 2 years ago

I'm very sorry I didn't answer before, I was busy. Thank you for your answer. Unfortunately using val url = TmdbImageUrlBuilder.buildPoster (item = movie, width = 200) I only get movie posters. I would like to, but get the movie logo. There is a function to get the movie logo? Thanks a lot