mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-17 00:30:04 +00:00
Fix bug in release date parsing from IGDB Game protobuf entity
This commit is contained in:
@@ -165,7 +165,7 @@ class IgdbPlugin(wrapper: PluginWrapper) : ConfigurableGameyfinPlugin(wrapper) {
|
|||||||
title = game.name,
|
title = game.name,
|
||||||
description = game.summary,
|
description = game.summary,
|
||||||
coverUrl = Mapper.cover(game.cover),
|
coverUrl = Mapper.cover(game.cover),
|
||||||
release = Instant.ofEpochSecond(game.firstReleaseDate.seconds),
|
release = if (game.firstReleaseDate.seconds > 0) Instant.ofEpochSecond(game.firstReleaseDate.seconds) else null,
|
||||||
userRating = game.rating.toInt(),
|
userRating = game.rating.toInt(),
|
||||||
criticRating = game.aggregatedRating.toInt(),
|
criticRating = game.aggregatedRating.toInt(),
|
||||||
developedBy = game.involvedCompaniesList.filter { it.developer }.map { it.company.name }.toSet(),
|
developedBy = game.involvedCompaniesList.filter { it.developer }.map { it.company.name }.toSet(),
|
||||||
|
|||||||
Reference in New Issue
Block a user