The Movie Database-ondersteuning

Hi,

I'm using perl and WWW::TheMovieDB (0.05).

I'm trying to remove a movie from the watch list, I get a success message but the movie remains in the list. Any help is appreciated.


print $api->Account::modify_movie_watchlist({
               'user_id'         => '####',
               'movie_id'        => 10824,
               'movie_watchlist' => false
          });

which gives the response: {"status_code":12,"status_message":"The item/record was updated successfully."}

I know that the api variables are set up properly because I can add a movie to list by changing false to true in the code above.

Any ideas?

Thanks

1 antwoord (op pagina 1 van 1)

Jump to last post

Answering my own question months later. The required code is different to the demo code listed on the WWW::TheMovieDB (0.05) page.

The following code works to remove a movie from the movie watch list:


print $api->Account::modify_movie_watchlist({
               'user_id'         => '####',
               'movie_id'        => 10824,
               'watchlist'        => 'false'
               'media_type'    => 'movie'
          });

Film of tv-serie niet gevonden? Meld je aan om deze toe te voegen.

Wereldwijd

s focus op zoekbalk
p open profielmenu
esc sluit een open venster
? open sneltoetsen venster

Op media pagina's

b ga terug (of ga naar bovenliggend item)
e ga naar beweken

Op tv-seizoenspagina's

(rechter pijl) ga naar volgende seizoen
(linker pijl) ga naar vorig seizoen

Op pagina's met tv-series

(rechter pijl) ga naar volgende aflevering
(linker pijl) ga naar vorige aflevering

Op alle afbeeldingspagina's

a open venster afbeelding toevoegen

Op alle bewerkte pagina's

t open vertaalmenu
ctrl+ s verstuur formulier

Op discussiepagina's

n start nieuwe discussie
w Verander kijk status
p privé of openbaar
c schakelen sluiten/openen
a open activiteit
r beantwoord discussie
l ga naar laatste antwoord
ctrl+ enter verstuur uw bericht
(rechter pijl) volgende pagina
(linker pijl) vorige pagina

Instellingen

Want to rate or add this item to a list?

Inloggen