playnite init
This commit is contained in:
18
src/api.ts
18
src/api.ts
@@ -49,6 +49,14 @@ export interface ApiMediaItem {
|
||||
tags?: string[];
|
||||
studios?: string[];
|
||||
staff?: ApiStaff[];
|
||||
categories?: string[];
|
||||
platforms?: string[];
|
||||
developers?: string[];
|
||||
completionStatus?: string;
|
||||
source?: string;
|
||||
playCount?: number;
|
||||
lastActivity?: string | null;
|
||||
playtime?: number;
|
||||
}
|
||||
|
||||
export interface ApiStaff {
|
||||
@@ -238,7 +246,15 @@ export function convertApiToMedia(apiItem: ApiMediaItem): Media {
|
||||
type: mediaType,
|
||||
status: mediaStatus,
|
||||
staff: staff.length > 0 ? staff : undefined,
|
||||
aspectRatio: aspectRatio
|
||||
aspectRatio: aspectRatio,
|
||||
categories: apiItem.categories,
|
||||
platforms: apiItem.platforms,
|
||||
developers: apiItem.developers,
|
||||
completionStatus: apiItem.completionStatus,
|
||||
source: apiItem.source,
|
||||
playCount: apiItem.playCount,
|
||||
lastActivity: apiItem.lastActivity,
|
||||
playtime: apiItem.playtime
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user