mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
8.3 KiB
8.3 KiB
GetGenresLibraryMediaContainer
Example Usage
import { GetGenresLibraryMediaContainer } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetGenresLibraryMediaContainer = {
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 | Example |
|---|---|---|---|---|
size |
number | ✔️ | Number of media items returned in this response. | 50 |
allowSync |
boolean | ✔️ | Indicates whether syncing is allowed. | false |
art |
string | ✔️ | URL for the background artwork of the media container. | /:/resources/show-fanart.jpg |
content |
string | ✔️ | The content type or mode. | secondary |
identifier |
string | ✔️ | An plugin identifier for the media container. | com.plexapp.plugins.library |
mediaTagPrefix |
string | ✔️ | The prefix used for media tag resource paths. | /system/bundle/media/flags/ |
mediaTagVersion |
number | ✔️ | The version number for media tags. | 1734362201 |
nocache |
boolean | ✔️ | Specifies whether caching is disabled. | true |
thumb |
string | ✔️ | URL for the thumbnail image of the media container. | /:/resources/show.png |
title1 |
string | ✔️ | The primary title of the media container. | TV Series |
title2 |
string | ✔️ | The secondary title of the media container. | By Starring Actor |
viewGroup |
string | ✔️ | Identifier for the view group layout. | secondary |
directory |
operations.GetGenresLibraryDirectory[] | ➖ | N/A |