mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-15 16:20:03 +00:00
feat(platforms): added platform support (#67)
Now libraries can be assigned to platforms in the admin section. Games will be assigned to libraries on scanning. Resolves grimsi/gameyfin#31 Co-authored-by: shawly <shawlyde@gmail.com>
This commit is contained in:
@@ -2,4 +2,5 @@ export class AutocompleteSuggestionDto {
|
||||
slug!: string;
|
||||
title!: string;
|
||||
releaseDate!: number;
|
||||
platforms!: Array<string>;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,9 @@ import {CompanyDto} from "./CompanyDto";
|
||||
import {GenreDto} from "./GenreDto";
|
||||
import {KeywordDto} from "./KeywordDto";
|
||||
import {PlayerPerspectiveDto} from "./PlayerPerspectiveDto";
|
||||
import {PlatformDto} from "./PlatformDto";
|
||||
import {ThemeDto} from "./ThemeDto";
|
||||
import {LibraryDto} from "./LibraryDto";
|
||||
|
||||
export class DetectedGameDto {
|
||||
|
||||
@@ -26,6 +28,8 @@ export class DetectedGameDto {
|
||||
keywords?: KeywordDto[];
|
||||
themes?: ThemeDto[];
|
||||
playerPerspectives?: PlayerPerspectiveDto[];
|
||||
platforms?: PlatformDto[];
|
||||
library?: LibraryDto;
|
||||
|
||||
path!: string;
|
||||
diskSize!: number;
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
import {PlatformDto} from "./PlatformDto";
|
||||
|
||||
export class LibraryDto {
|
||||
path!: string;
|
||||
platforms!: PlatformDto[];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
import {PlatformDto} from "./PlatformDto";
|
||||
|
||||
export class LibraryScanRequestDto {
|
||||
path!: string;
|
||||
downloadImages!: boolean;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
export class PlatformDto {
|
||||
slug!: string;
|
||||
name!: string;
|
||||
platformLogoId?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user