mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
11 KiB
11 KiB
LibrarySection
Example Usage
import { LibrarySection, MediaTypeString } from "@lukehagar/plexjs/models/shared";
let value: LibrarySection = {
title: "Movies",
type: MediaTypeString.Movie,
contentChangedAt: 1556281940,
createdAt: 1556281940,
language: "<value>",
uuid: "e69655a2-ef48-4aba-bb19-d3cc3401e7d6",
scannedAt: 1556281940,
updatedAt: 1556281940,
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
title |
string | ➖ | The title of the library | Movies |
type |
shared.MediaTypeString | ✔️ | The type of media content in the Plex library. This can represent videos, music, or photos. |
movie |
agent |
string | ➖ | N/A | |
allowSync |
boolean | ➖ | N/A | |
art |
string | ➖ | N/A | |
composite |
string | ➖ | N/A | |
content |
boolean | ➖ | N/A | |
contentChangedAt |
number | ➖ | N/A | 1556281940 |
createdAt |
number | ➖ | N/A | 1556281940 |
directory |
boolean | ➖ | N/A | |
filters |
boolean | ➖ | Indicates whether this section has filtering capabilities | |
hidden |
boolean | ➖ | N/A | |
key |
string | ➖ | N/A | |
language |
string | ✔️ | N/A | |
uuid |
string | ✔️ | The universally unique identifier for the library. | e69655a2-ef48-4aba-bb19-d3cc3401e7d6 |
location |
shared.LibrarySectionLocation[] | ➖ | N/A | |
refreshing |
boolean | ➖ | Indicates whether this library section is currently scanning | |
scannedAt |
number | ➖ | N/A | 1556281940 |
scanner |
string | ➖ | N/A | |
thumb |
string | ➖ | N/A | |
updatedAt |
number | ➖ | N/A | 1556281940 |