feat: plex integration (#1342)
* feat: plex integration * feat: plex integration * fix: DeepSource error * fix: lint error * fix: pnpm-lock * fix: lint error * fix: errors * fix: pnpm-lock * fix: reviewed changes * fix: reviewed changes * fix: reviewed changes * fix: pnpm-lock
This commit is contained in:
37
packages/integrations/src/plex/interface.ts
Normal file
37
packages/integrations/src/plex/interface.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user