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:
Simon
2022-10-25 21:55:35 +03:00
committed by GitHub
parent 7504cd3500
commit 8e23549336
54 changed files with 1426 additions and 113 deletions
@@ -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;
}