+
diff --git a/frontend/src/app/components/game-detail-view/game-detail-view.component.scss b/frontend/src/app/components/game-detail-view/game-detail-view.component.scss
index e69de29..fda9bd6 100644
--- a/frontend/src/app/components/game-detail-view/game-detail-view.component.scss
+++ b/frontend/src/app/components/game-detail-view/game-detail-view.component.scss
@@ -0,0 +1,8 @@
+.mat-card {
+// min-height: max-content;
+
+ .company-logos img {
+ max-height: 52px;
+ max-width: 260px;
+ }
+}
diff --git a/frontend/src/app/components/game-detail-view/game-detail-view.component.ts b/frontend/src/app/components/game-detail-view/game-detail-view.component.ts
index 444f1b0..88f6db7 100644
--- a/frontend/src/app/components/game-detail-view/game-detail-view.component.ts
+++ b/frontend/src/app/components/game-detail-view/game-detail-view.component.ts
@@ -48,6 +48,24 @@ export class GameDetailViewComponent {
this.gamesService.downloadGame(this.game.slug);
}
+ public refreshGame(): void {
+ this.gamesService.refreshGame(this.game.slug).subscribe({
+ next: game => {
+ this.game = game;
+ if(game.companies !== undefined) {
+ this.companiesWithLogo = game.companies.filter(c => c.logoId !== undefined && c.logoId.length > 0);
+ }
+ },
+ error: error => {
+ if (error.status === 404) {
+ this.router.navigate(['/library']);
+ } else {
+ console.error(error);
+ }
+ }
+ });
+ }
+
public bytesAsHumanReadableString(bytes: number): string {
const thresh = 1024;
diff --git a/frontend/src/app/services/games.service.ts b/frontend/src/app/services/games.service.ts
index 87bd6f4..ea7a5b8 100644
--- a/frontend/src/app/services/games.service.ts
+++ b/frontend/src/app/services/games.service.ts
@@ -92,6 +92,10 @@ export class GamesService implements GamesApi {
window.open(`v1${this.apiPath}/game/${slug}/download`, '_top');
}
+ refreshGame(slug: String): Observable
{
+ return this.http.get(`${this.apiPath}/game/${slug}/refresh`);
+ }
+
getGameOverviews(): Observable {
return this.http.get(`${this.apiPath}/game-overviews`);
}
diff --git a/pom.xml b/pom.xml
index c2c5cf9..cef79b4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,5 +1,6 @@
-
+
4.0.0
de.grimsi
@@ -19,7 +20,7 @@
org.springframework.boot
spring-boot-starter-parent
2.7.4
-
+
@@ -27,7 +28,7 @@
scm:git:https://github.com/grimsi/gameyfin.git
scm:git:https://github.com/grimsi/gameyfin.git
-
+
grimsi-github
https://sonarcloud.io
diff --git a/sonar-project.properties b/sonar-project.properties
index 3593a3c..efe7579 100644
--- a/sonar-project.properties
+++ b/sonar-project.properties
@@ -1,4 +1,2 @@
-sonar.projectKey=grimsi_gameyfin
-
# Point SONAR to the compiled Java classes
sonar.java.binaries=./backend/target