Taageerada Xoggunka Filimka

There seems to be an issue with retrieving an actors credits for a TV series when duplicate ID's exist. For example:

Scott Bakula https://www.themoviedb.org/person/2154-scott-bakula

1989 Quantum Leap - (98 episodes) as Sam Beckett 1989 Quantum Leap - (2 episodes) https://www.themoviedb.org/tv/4018-quantum-leap

Nathan Fillion https://www.themoviedb.org/person/51797-nathan-fillion

1997 Buffy the Vampire Slayer - (145 episodes) as Caleb 1997 Buffy the Vampire Slayer - (5 episodes)

https://www.themoviedb.org/tv/95-buffy-the-vampire-slayer

Is there any way to work around this with the API? At the moment when I retrieve an actors credits for a TV show with duplicate ID's they are coming back with no seasons and missing data.

1 reply (on page 1 of 1)

Jump to last post

Hi dontfeedthecode,

It's just a data issue, you can see Scott Bakula is added as a guest star: https://www.themoviedb.org/tv/4018-quantum-leap/season/5/episode/11

When I query his tv credits:

https://api.themoviedb.org/3/person/2154/tv_credits?api_key=###

Both entries are returned:

{
  "cast": [
    ...,
    {
      "character": "",
      "credit_id": "52575a28760ee36aaa2990b3",
      "episode_count": 2,
      "first_air_date": "1989-03-26",
      "id": 4018,
      "name": "Quantum Leap",
      "original_name": "Quantum Leap",
      "poster_path": "/xpsszjreNk32LCmzUo9E6rknwzW.jpg"
    },
    {
      "character": "Sam Beckett",
      "credit_id": "52575a48760ee36aaa29ce59",
      "episode_count": 98,
      "first_air_date": "1989-03-26",
      "id": 4018,
      "name": "Quantum Leap",
      "original_name": "Quantum Leap",
      "poster_path": "/xpsszjreNk32LCmzUo9E6rknwzW.jpg"
    },
    ...
  ],
  "id": 2154
}

When you make a call to a credit for season members, it won't show the episodes, only season. If the season is present, you can assume they are a "season regular" and therefore in every episode.

https://api.themoviedb.org/3/credit/52575a48760ee36aaa29ce59?api_key=###

To fix the problem with the data, you can either remove the data yourself (as you find it) or report it in the content issues forum and one of our moderators can help you out.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Ma doonaysaa inaad qiimayso ama ku darto shaygan liiska?

Galid