Supporto 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 risposte (nella pagina 1 di 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 riesci a trovare un film o una serie Tv? Accedi per crearlo.

Globale

s focalizza la barra di ricerca
p apri menu profilo
esc chiudi una finestra aperta
? apri finestra scorciatoia tastiera

Su tutte le pagine di media

b torna indietro (o al precedente quando applicabile)
e vai alla pagina di modifica

Nelle pagine delle stagioni TV

(freccia destra) vai alla stagione successiva
(freccia sinistra) vai alla stagione precedente

Nelle pagine degli episodi TV

(freccia destra) vai all'episodio successivo
(freccia sinistra) vai all'episodio precedente

Su tutte le pagine di immagini

a apri finestra aggiungi immagine

Su tutte le pagine di modifica

t apri selettore traduzione
ctrl+ s invia modulo

Sulle pagine di discussione

n crea nuova discussione
w segna come visto/non visto
p cambia publico/privato
c cambia chiuso/aperto
a apri attivita
r rispondi alla discussione
l vai all'ultima risposta
ctrl+ enter invia il tuo messaggio
(freccia destra) pagina successiva
(freccia sinistra) pagina precedente

Impostazioni

Vuoi valutare o aggiungere quest'elemento a una lista?

Accedi