Sprijin Bază de date filme (The Movie Database)

Hi, I am wondering how get ratings of movies and TV show that user sets while user selects like movie now_playing or shows on air Is there any way to load now_playing or on air list with user ratings

8 răspunsuri (pe pagina 1 din 1)

Jump to last post

Ho @DattatrayHinge,

When you say user ratings do you mean just the rating of the movie on TMDb? If so, that's returned via the vote_average field.

Thanks Travis, I mean is user ratings in number of stars that user given to movie or show but when user fetch Now Playing movies or On Air Show for APIs, didnt see those user ratings in response

It's the same as I mentioned above, you can find it from the vote_average field:

{
  "page": 1,
  "results": [
    {
      "poster_path": "/tWqifoYuwLETmmasnGHO7xBjEtt.jpg",
      "adult": false,
      "overview": "A live-action adaptation of Disney's version of the classic 'Beauty and the Beast' tale of a cursed prince and a beautiful young woman who helps him break the spell.",
      "release_date": "2017-03-16",
      "genre_ids": [
        14,
        10749
      ],
      "id": 321612,
      "original_title": "Beauty and the Beast",
      "original_language": "en",
      "title": "Beauty and the Beast",
      "backdrop_path": "/6aUWe0GSl69wMTSWWexsorMIvwU.jpg",
      "popularity": 158.103128,
      "vote_count": 1824,
      "video": false,
      "vote_average": 6.9
    }
    ...
  ]
}

Hi Travis Bell

vote_average is average, what I want to see my ratings given to movie or TV show, like one we get from rated/movies. See "rating":10 is individual user rating

 {
      "adult": false,
      "backdrop_path": "/bTFeSwh07oX99ofpDI4O2WkiFJ.jpg",
      "genre_ids": [
        16,
        35,
        10751
      ],
      "id": 295693,
      "original_language": "en",
      "original_title": "The Boss Baby",
      "overview": null,
      "release_date": "2017-03-23",
      "poster_path": "/unPB1iyEeTBcKiLg8W083rlViFH.jpg",
      "popularity": 121.933756,
      "title": "The Boss Baby",
      "video": false,
      "vote_average": 5.7,
      "vote_count": 568,
      "rating": 10
    },

My problem is when user open detail page of Movie or TV Show, I dont have users ratings that he given in previous session. I am not storing this information locally in my APP Or you can suggest way to link rating to movie or TV show details information

Ah, I see, you're looking for the rating pulled from the session user. I have an open ticket to look at implementing something that will support this here. I haven't decided how it will work yet but it's on my radar.

Cheers.

Yes, correct I need rating of session user and also need to know whether user has added this movie/TV show in watchlist or favorite list while pulling detail information of movie/Tv show.

What I think if session user append seesion id while pulling movie/TV show details, server can returns something like in json response - user_list[{"ratings": 9 , "watchlist": true, "favorite :" false}]

Yes, the data will be the same as the account_states method, but more broadly available across list methods.

oh yes, waiting for new implementation ..

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