mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
6.8 KiB
6.8 KiB
GetSessionsPart
Example Usage
import { GetSessionsPart } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetSessionsPart = {
container: "flac",
duration: 186240,
file:
"/music/Green Day/Saviors (2024)/Green Day - Saviors - 01 - The American Dream Is Killing Me.flac",
hasThumbnail: "1",
id: "130625",
key: "/library/parts/130625/1705543268/file.flac",
size: 23644000,
decision: "directplay",
selected: true,
stream: [
{
albumGain: "-12.94",
albumPeak: "1.000000",
albumRange: "4.751014",
audioChannelLayout: "stereo",
bitDepth: 16,
bitrate: 1014,
channels: 2,
codec: "flac",
displayTitle: "FLAC (Stereo)",
extendedDisplayTitle: "FLAC (Stereo)",
gain: "-12.94",
id: "352487",
index: 0,
loudness: "-5.94",
lra: "1.74",
peak: "1.000000",
samplingRate: 44100,
selected: true,
streamType: 2,
location: "direct",
},
],
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
container |
string | ➖ | N/A | flac |
duration |
number | ➖ | N/A | 186240 |
file |
string | ➖ | N/A | /music/Green Day/Saviors (2024)/Green Day - Saviors - 01 - The American Dream Is Killing Me.flac |
hasThumbnail |
string | ➖ | N/A | 1 |
id |
string | ➖ | N/A | 130625 |
key |
string | ➖ | N/A | /library/parts/130625/1705543268/file.flac |
size |
number | ➖ | N/A | 23644000 |
decision |
string | ➖ | N/A | directplay |
selected |
boolean | ➖ | N/A | true |
stream |
operations.GetSessionsStream[] | ➖ | N/A |