mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-14 16:20:04 +00:00
Update Plugin API (and plugins)
Fix issue with persisting new games
This commit is contained in:
@@ -122,6 +122,7 @@ class IgdbPlugin(wrapper: PluginWrapper) : GameyfinPlugin(wrapper) {
|
||||
return GameMetadata(
|
||||
title = game.name,
|
||||
description = game.summary,
|
||||
coverUrl = Mapper.cover(game.cover),
|
||||
release = Instant.ofEpochSecond(game.firstReleaseDate.seconds),
|
||||
userRating = game.rating.toInt(),
|
||||
criticRating = game.aggregatedRating.toInt(),
|
||||
|
||||
@@ -95,7 +95,11 @@ class Mapper {
|
||||
}
|
||||
|
||||
fun screenshot(screenshot: proto.Screenshot): URL {
|
||||
return URI(imageBuilder(screenshot.imageId, ImageSize.SCREENSHOT_HUGE, ImageType.PNG)).toURL()
|
||||
return URI(imageBuilder(screenshot.imageId, ImageSize.FHD, ImageType.PNG)).toURL()
|
||||
}
|
||||
|
||||
fun cover(cover: proto.Cover): URL {
|
||||
return URI(imageBuilder(cover.imageId, ImageSize.COVER_BIG, ImageType.PNG)).toURL()
|
||||
}
|
||||
|
||||
fun video(video: proto.GameVideo): URL {
|
||||
|
||||
Reference in New Issue
Block a user