mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-06 14:49:17 +01:00
38 lines
539 B
TypeScript
38 lines
539 B
TypeScript
|
|
interface MediaContainer {
|
||
|
|
Video?: Session[];
|
||
|
|
Track?: Session[];
|
||
|
|
}
|
||
|
|
|
||
|
|
interface Session {
|
||
|
|
User?: {
|
||
|
|
$: {
|
||
|
|
id: string;
|
||
|
|
title: string;
|
||
|
|
thumb?: string;
|
||
|
|
};
|
||
|
|
}[];
|
||
|
|
Player?: {
|
||
|
|
$: {
|
||
|
|
product: string;
|
||
|
|
title: string;
|
||
|
|
};
|
||
|
|
}[];
|
||
|
|
Session?: {
|
||
|
|
$: {
|
||
|
|
id: string;
|
||
|
|
};
|
||
|
|
}[];
|
||
|
|
$: {
|
||
|
|
grandparentTitle?: string;
|
||
|
|
parentTitle?: string;
|
||
|
|
title?: string;
|
||
|
|
index?: number;
|
||
|
|
type: string;
|
||
|
|
live?: string;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface PlexResponse {
|
||
|
|
MediaContainer: MediaContainer;
|
||
|
|
}
|