mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
9.4 KiB
9.4 KiB
GetLibraryItemsPart
Example Usage
import { GetLibraryItemsHasThumbnail, GetLibraryItemsPart } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetLibraryItemsPart = {
accessible: true,
exists: true,
id: 418385,
key: "/library/parts/418385/1735864239/file.mkv",
indexes: "sd",
duration: 9610350,
file: "/mnt/Movies_1/W/Wicked (2024).mkv",
size: 30649952104,
packetLength: 188,
container: "mkv",
videoProfile: "main 10",
audioProfile: "dts",
has64bitOffsets: false,
hasThumbnail: GetLibraryItemsHasThumbnail.True,
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
accessible |
boolean | ➖ | Indicates if the part is accessible. | true |
exists |
boolean | ➖ | Indicates if the part exists. | true |
id |
number | ✔️ | Unique part identifier. | 418385 |
key |
string | ➖ | Key to access this part. | /library/parts/418385/1735864239/file.mkv |
indexes |
string | ➖ | N/A | sd |
duration |
number | ➖ | Duration of the part in milliseconds. | 9610350 |
file |
string | ➖ | File path for the part. | /mnt/Movies_1/W/Wicked (2024).mkv |
size |
number | ➖ | File size in bytes. | 30649952104 |
packetLength |
number | ➖ | N/A | 188 |
container |
string | ➖ | Container format of the part. | mkv |
videoProfile |
string | ➖ | Video profile for the part. | main 10 |
audioProfile |
string | ➖ | The audio profile used for the media (e.g., DTS, Dolby Digital, etc.). | dts |
has64bitOffsets |
boolean | ➖ | N/A | false |
optimizedForStreaming |
operations.GetLibraryItemsLibraryOptimizedForStreaming | ➖ | Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true |
|
hasThumbnail |
operations.GetLibraryItemsHasThumbnail | ➖ | N/A | 1 |