Axuda de The Movie Database

I'm currently using the API for an iPhone app I'm developing. An overview there Mooviz

I'm having a problem deleting a movie from favorites. I can add it but I can't remove it. I use the call below :

POST https://api.themoviedb.org/3/account/19479604/favorite?api_key=##API_KEY##&session_id=##SESSION_ID##

With the body:

{ "media_type" : "movie", "media_id" : 726209, "favorite": false }

I have the response below:

{ "success": true, "status_code": 12, "status_message": "The item/record was updated successfully." }

But the movie has not been removed from favorites ... Is there a bug in the API ? Thanks for your help.

5 respostas (na páxina 1 de 1)

Jump to last post

@cyberchrix said:
Can't remove favorite
I'm currently using the API for an iPhone app I'm developing. An overview there Mooviz
I'm having a problem deleting a movie from favorites. I can add it but I can't remove it. I use the call below :
POST https://api.themoviedb.org/3/account/19479604/favorite?api_key=##API_KEY##&session_id=##SESSION_ID##
With the body { "media_type" : "movie", "media_id" : 726209, "favorite": false }
I have the response below { "success": true, "status_code": 12, "status_message": "The item/record was updated successfully." }
But the movie has not been removed from favorites ... Is there a bug in the API ? Thanks for your help.

I am not a TOKEN user.
But I think maybe you need to use v4 and not v3.
Remove Items
https://developer.themoviedb.org/v4/reference/list-remove-items

Thank you but this method concerns the lists that we have created and not the list of favorites...

Does anyone have an explanation please?

I don't know what causes this, but I found you can remove an item from favourites if you try it from the items unique overview page rather than any personal list or favourites page.

Hi guys,

I'm not having any trouble using this code (as an example) to remove items from my favourite list:

curl --location 'https://api.themoviedb.org/3/account/ACCOUNT_ID/favorite?session_id=###&api_key=###' \
--header 'Content-Type: application/json' \
--data '{ "media_type": "movie", "media_id": 16, "favorite": false }'

I am getting the correct response:

{
    "success": true,
    "status_code": 13,
    "status_message": "The item/record was deleted successfully."
}

Non podes atopar unha película ou serie? Inicia sesión para creala.

Global

s amosar a barra de procura
p abrir menú do perfil
esc pechar e abrir xanela
? abrir xanela de atallos do teclado

En páxinas de medios

b atrás (ou á principal se aplica)
e ir a editar páxina

En páxinas de tempadas de televisión

(flecha dereita) ir á tempada seguinte
(flecha esquerda) ir á tempada anterior

En páxinas de episodios de televisión

(flecha dereita) ir ao episodio seguinte
(flecha esquerda) ir ao episodio anterior

En todas as páxinas de imaxe

a abrir a xanela de engadir imaxe

En todas as páxinas de edición

t abrir selector de traducións
ctrl+ s enviar formulario

Nas páxinas de debate

n crear un novo debate
w amosar o estado do seguimento
p mudar público/privado
c mudar abrir/pechar
a abrir actividade
r responder no debate
l ir á última resposta
ctrl+ enter eviar a túa mensaxe
(flecha dereita) páxina seguinte
(flecha esquerda) ir á páxina anterior

Configuración

Queres valorar ou engadir o elemento a unha listaxe?

Iniciar sesión