mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-06 04:20:52 +00:00
8.5 KiB
8.5 KiB
Part
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
accessible |
T.nilable(T::Boolean) | ➖ | Indicates if the part is accessible. | true |
exists |
T.nilable(T::Boolean) | ➖ | Indicates if the part exists. | true |
id |
::Integer | ✔️ | Unique part identifier. | 418385 |
key |
::String | ✔️ | Key to access this part. | /library/parts/418385/1735864239/file.mkv |
indexes |
T.nilable(::String) | ➖ | N/A | sd |
duration |
T.nilable(::Integer) | ➖ | Duration of the part in milliseconds. | 9610350 |
file |
::String | ✔️ | File path for the part. | /mnt/Movies_1/W/Wicked (2024).mkv |
size |
::Integer | ✔️ | File size in bytes. | 30649952104 |
packet_length |
T.nilable(::Integer) | ➖ | N/A | 188 |
container |
T.nilable(::String) | ➖ | Container format of the part. | mkv |
video_profile |
T.nilable(::String) | ➖ | Video profile for the part. | main 10 |
audio_profile |
T.nilable(::String) | ➖ | The audio profile used for the media (e.g., DTS, Dolby Digital, etc.). | dts |
has64bit_offsets |
T.nilable(T::Boolean) | ➖ | N/A | false |
optimized_for_streaming |
T.nilable(::Object) | ➖ | Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true | |
has_thumbnail |
T.nilable(::PlexRubySDK::Operations::HasThumbnail) | ➖ | N/A | 1 |
stream |
T::Array<::PlexRubySDK::Operations::Stream> | ➖ | An array of streams for this part. |