trakt / api-help

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

Collection Metadata Audio Channel incorrect value #272

Closed Pomanks closed 2 years ago

Pomanks commented 3 years ago

I caught some issue with the metadata response when the audio channel is set to 10.1 in the request body. As you can check below, the response returns a value of 1.0.1 instead of the expected 10.1 (as sent).

Request Body:

{
  "movies" : [
    {
      "ids" : {
        "tmdb" : 299534,
        "slug" : "avengers-endgame-2019",
        "trakt" : 191798,
        "imdb" : "tt4154796"
      },
      "hdr" : "dolby_vision",
      "media_type" : "digital",
      "collected_at" : "2019-04-26T21:00:00.000+0000",
      "3d" : false,
      "audio_channels" : "10.1",
      "resolution" : "uhd_4k",
      "audio" : "dolby_digital_plus_atmos"
    }
  ]
}

When getting the collection:

 "movie" : {
      "released" : "2019-04-26",
      "ids" : {
        "tmdb" : 299534,
        "slug" : "avengers-endgame-2019",
        "trakt" : 191798,
        "imdb" : "tt4154796"
      },
      "rating" : 8.5081600000000002,
      "comment_count" : 177,
      "certification" : "PG-13",
      "trailer" : "http:\/\/youtube.com\/watch?v=TcMBFSGVi1c",
      "runtime" : 181,
      "title" : "Avengers: Endgame",
      "overview" : "After the devastating events of Avengers: Infinity War, the universe is in ruins due to the efforts of the Mad Titan, Thanos. With the help of remaining allies, the Avengers must assemble once more in order to undo Thanos' actions and restore order to the universe once and for all, no matter what consequences may be in store.",
      "homepage" : "https:\/\/www.marvel.com\/movies\/avengers-endgame",
      "available_translations" : [
        "ar",
        "bg",
        "cs",
        "da",
        "de",
        "el",
        "en",
        "es",
        "fa",
        "fi",
        "fr",
        "he",
        "hi",
        "hr",
        "hu",
        "id",
        "it",
        "ja",
        "ka",
        "ko",
        "lt",
        "lv",
        "nl",
        "no",
        "pl",
        "pt",
        "ro",
        "ru",
        "sk",
        "sl",
        "sr",
        "sv",
        "ta",
        "te",
        "th",
        "tr",
        "uk",
        "uz",
        "vi",
        "zh"
      ],
      "updated_at" : "2021-03-04T08:22:23.000Z",
      "year" : 2019,
      "language" : "en",
      "tagline" : "Part of the journey is the end.",
      "genres" : [
        "action",
        "adventure",
        "science-fiction"
      ],
      "country" : "us",
      "status" : "released",
      "votes" : 33226
    },
    "metadata" : {
      "3d" : false,
      "audio" : "dolby_digital_plus_atmos",
      "hdr" : "dolby_vision",
      "audio_channels" : "1.0.1",
      "media_type" : "digital",
      "resolution" : "uhd_4k"
    },
    "updated_at" : "2021-03-04T17:09:44.000Z",
    "collected_at" : "2019-04-26T21:00:00.000Z"
  }
rectifyer commented 2 years ago

Good catch, I'll have a fix out next week.