Fix bug in release date parsing from IGDB Game protobuf entity

This commit is contained in:
grimsi
2025-06-12 19:28:43 +02:00
parent 1e242cd7ae
commit 9dc8d0f046
@@ -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(),