Files
plexjs/docs/sdk/models/operations/getgenreslibraryresponse.md

3.5 KiB
Raw Blame History

GetGenresLibraryResponse

Example Usage

import { GetGenresLibraryResponse } from "@lukehagar/plexjs/sdk/models/operations";

let value: GetGenresLibraryResponse = {
  contentType: "<value>",
  statusCode: 101,
  rawResponse: new Response("{\"message\": \"hello world\"}", {
    headers: { "Content-Type": "application/json" },
  }),
  object: {
    mediaContainer: {
      size: 50,
      allowSync: false,
      art: "/:/resources/show-fanart.jpg",
      content: "secondary",
      identifier: "com.plexapp.plugins.library",
      mediaTagPrefix: "/system/bundle/media/flags/",
      mediaTagVersion: 1734362201,
      nocache: true,
      thumb: "/:/resources/show.png",
      title1: "TV Series",
      title2: "By Starring Actor",
      viewGroup: "secondary",
      directory: [
        {
          fastKey: "/library/sections/10/all?genre=89",
          key: "89",
          title: "Action",
          type: "genre",
        },
      ],
    },
  },
};

Fields

Field Type Required Description
contentType string ✔️ HTTP response content type for this operation
statusCode number ✔️ HTTP response status code for this operation
rawResponse Response ✔️ Raw HTTP response; suitable for custom response parsing
object operations.GetGenresLibraryResponseBody Successful response containing media container data.