Sprijin Bază de date filme (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 răspuns (pe pagina 1 din 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.

Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.

Globale

s focalizează bara de căutare
p deschide meniul profilului
esc închide o fereastră deschisă
? deschide fereastra cu scurtături de la tastatură

Pe paginile media

b mergi înapoi (sau la părinte atunci când este cazul)
e mergi la pagina de editare

Pe paginile sezoanelor filmelor seriale

(săgeată dreapta) mergi la sezonul următor
(săgeată stânga) mergi la sezonul precedent

Pe paginile episoadelor filmelor seriale

(săgeată dreapta) mergi la episodul următor
(săgeată stânga) mergi la episodul precedent

Pe toate paginile de imagini

a deschide fereastra pentru adăugarea de imagini

Pe toate paginile de editare

t deschide selectorul de traduceri
ctrl+ s trimite formularul

Pe paginile de discuții

n crează o discuție nouă
w comută starea de vizionare
p comută publică/privată
c comută închisă/deschisă
a deschide activitatea
r răspunde la discuție
l mergi la ultimul răspuns
ctrl+ enter trimite mesajul
(săgeată dreapta) pagina următoare
(săgeată stânga) pagina precedentă

Setări

Doriți să evaluați sau să adăugați acest articol într-o listă?

Autentificare