Supporto The Movie Database

Hello, I'm making an app that allows its' users to receive recommendation for movies to watch. I'm using https://api.themoviedb.org/3/discover/movie?api_key=&include_adult=false&include_video=false&language=pl-PL&page=1&sort_by=popularity.desc. And everything works fine, however I get 20 movies and it clutters the page.

  1. Is there a way to limit the movies taken from the api to let's say 5?
  2. Another thing is is there a way to get genre shown as a word? I'm getting Genre: 878, 12 for example or is it an issue with my deserialization?
  3. Also, if you have a better method to get recommendations shown on a page I'd be glad because it's supposed to be an app that helps people who don't know what to watch on a lazy day and I'm getting recommended movies that are being shown in cinema atm. An url would be helpful. :) Thank you!

1 risposta (nella pagina 1 di 1)

Jump to last post

@pjakubiec said:

  1. Is there a way to limit the movies taken from the api to let's say 5?

The Api will always return pages of 20 results. But, you can code your application to only use the first 5 answers.

  1. Another thing is is there a way to get genre shown as a word? I'm getting Genre: 878, 12 for example or is it an issue with my deserialization?

There are no direct means. You need to use this method to get the correspondance table for movies, or this one for series.

Non riesci a trovare un film o una serie Tv? Accedi per crearlo.

Globale

s focalizza la barra di ricerca
p apri menu profilo
esc chiudi una finestra aperta
? apri finestra scorciatoia tastiera

Su tutte le pagine di media

b torna indietro (o al precedente quando applicabile)
e vai alla pagina di modifica

Nelle pagine delle stagioni TV

(freccia destra) vai alla stagione successiva
(freccia sinistra) vai alla stagione precedente

Nelle pagine degli episodi TV

(freccia destra) vai all'episodio successivo
(freccia sinistra) vai all'episodio precedente

Su tutte le pagine di immagini

a apri finestra aggiungi immagine

Su tutte le pagine di modifica

t apri selettore traduzione
ctrl+ s invia modulo

Sulle pagine di discussione

n crea nuova discussione
w segna come visto/non visto
p cambia publico/privato
c cambia chiuso/aperto
a apri attivita
r rispondi alla discussione
l vai all'ultima risposta
ctrl+ enter invia il tuo messaggio
(freccia destra) pagina successiva
(freccia sinistra) pagina precedente

Impostazioni

Vuoi valutare o aggiungere quest'elemento a una lista?

Accedi