mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-09 12:37:46 +00:00
44 lines
9.4 KiB
Markdown
44 lines
9.4 KiB
Markdown
# GetLibraryItemsPart
|
|
|
|
## Example Usage
|
|
|
|
```typescript
|
|
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* | :heavy_minus_sign: | Indicates if the part is accessible. | true |
|
|
| `exists` | *boolean* | :heavy_minus_sign: | Indicates if the part exists. | true |
|
|
| `id` | *number* | :heavy_check_mark: | Unique part identifier. | 418385 |
|
|
| `key` | *string* | :heavy_minus_sign: | Key to access this part. | /library/parts/418385/1735864239/file.mkv |
|
|
| `indexes` | *string* | :heavy_minus_sign: | N/A | sd |
|
|
| `duration` | *number* | :heavy_minus_sign: | Duration of the part in milliseconds. | 9610350 |
|
|
| `file` | *string* | :heavy_minus_sign: | File path for the part. | /mnt/Movies_1/W/Wicked (2024).mkv |
|
|
| `size` | *number* | :heavy_minus_sign: | File size in bytes. | 30649952104 |
|
|
| `packetLength` | *number* | :heavy_minus_sign: | N/A | 188 |
|
|
| `container` | *string* | :heavy_minus_sign: | Container format of the part. | mkv |
|
|
| `videoProfile` | *string* | :heavy_minus_sign: | Video profile for the part. | main 10 |
|
|
| `audioProfile` | *string* | :heavy_minus_sign: | The audio profile used for the media (e.g., DTS, Dolby Digital, etc.). | dts |
|
|
| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false |
|
|
| `optimizedForStreaming` | *operations.GetLibraryItemsLibraryOptimizedForStreaming* | :heavy_minus_sign: | Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true<br/> | |
|
|
| `hasThumbnail` | [operations.GetLibraryItemsHasThumbnail](../../../sdk/models/operations/getlibraryitemshasthumbnail.md) | :heavy_minus_sign: | N/A | 1 | |