trakt / api-help

Trakt API docs at https://trakt.docs.apiary.io
186 stars 7 forks source link

/sync/history/remove removing movie by imdb ... adds the item #419

Closed rysson closed 1 year ago

rysson commented 1 year ago

I'm trying to remove an item from the history by imdb id. There is no error, but nothing is removed. Worse the item is added to the history. The same with tmdb id. Removing works only with 64-bit raw-history id.

Request POST https://api.trakt.tv/sync/history/remove

{
  "movies": [
    {
      "ids": {
        "imdb": "tt10268488"
      }
    }
  ]
}

Response 200

{
  "deleted": {
    "movies": 0,
    "episodes": 0
  },
  "not_found": {
    "movies": [],
    "shows": [],
    "seasons": [],
    "episodes": [],
    "people": [],
    "users": []
  }
}
rectifyer commented 1 year ago

I just pushed a fix. Please let me know if it's working correctly now.

rysson commented 1 year ago

So awesome reaction time, thanks! Everything is working now as was expected.

{
  "deleted": {
    "movies": 5,
    "episodes": 0
  },
  "not_found": {
    "movies": [],
    "shows": [],
    "seasons": [],
    "episodes": [],
    "people": [],
    "users": []
  }
}