Assistance de TMDB

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éponses (sur la page 1 sur 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 ..

Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.

Général

s Mettre le curseur dans la barre de recherche
p Ouvrir le menu du profil
esc Fermer une fenêtre ouverte
? Ouvrir la fenêtre des raccourcis clavier

Sur les pages des médias

b Retour (ou vers le parent si faisable)
e Afficher la page de modification

Sur les pages des saisons des émissions télévisées

Afficher la saison suivante (flèche droite)
Afficher la saison précédente (flèche gauche)

Sur les pages des épisodes des émissions télévisées

Afficher l'épisode suivant (flèche droite)
Afficher l'épisode précédent (flèche gauche)

Sur toutes les pages des images / photos

a Ouvrir la fenêtre d'ajout d'image / photo

Sur toutes les pages de modifications

t Ouvrir le sélecteur de traduction
ctrl+ s Envoyer le formulaire

Sur les pages des discussions

n Créer une nouvelle discussion
w Basculer le statut de suivi
p Basculer publique / privée
c Basculer fermer / ouvrir
a Ouvrir l'activité
r Répondre à la discussion
l Afficher la dernière réponse
ctrl+ enter Envoyer votre message
Page suivante (flèche droite)
Page précédente (flèche gauche)

Paramètres

Vous souhaitez évaluer ou ajouter cet élément à une liste ?

Connexion