mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +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,
|
||||
description = game.summary,
|
||||
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(),
|
||||
criticRating = game.aggregatedRating.toInt(),
|
||||
developedBy = game.involvedCompaniesList.filter { it.developer }.map { it.company.name }.toSet(),
|
||||
|
||||
Reference in New Issue
Block a user