Added playtime in Game Detail

This commit is contained in:
2021-05-26 14:58:52 +02:00
parent 41b304f655
commit dc4f8b0ebe
6 changed files with 131 additions and 52 deletions

View File

@@ -86,6 +86,8 @@ class LibraryImport {
cdGame.cover_icloud_path = game.cover_icloud_path
cdGame.pickupDescription = game.pickupDescription
cdGame.isDigital = game.isDigital
cdGame.playtime_h = game.playtime_h ?? 0
cdGame.playtime_min = game.playtime_min ?? 0
if let date = Date.from(string: game.createdAt) {
cdGame.createdAt = date
@@ -216,6 +218,8 @@ struct BHLGame : Decodable {
let publisher : String?
let console : UUID
let cover_icloud_path : String?
let playtime_h : Int?
let playtime_min : Int?
}
struct BHLAccessory : Decodable {