[boardgames] Fix bug in bggeek_id

This commit is contained in:
2026-01-20 21:18:04 -05:00
parent 009ed2ace3
commit c897507de4
2 changed files with 6 additions and 3 deletions

View File

@ -92,7 +92,7 @@ fetching and simple saving.
:LOGBOOK:
CLOCK: [2025-07-09 Wed 09:55]--[2025-07-09 Wed 10:15] => 0:20
:END:
* Backlog [3/27]
* Backlog [4/27]
** TODO [#C] Create small utility to clean up tracks scrobbled with wonky playback times :vrobbler:personal:bug:music:scrobbles:
** TODO [#C] Move to using more robust mopidy-webhooks pacakge form pypi :utility:improvement:
:PROPERTIES:
@ -463,7 +463,10 @@ Turns out we're not looking up music tracks properly, again.
:PROPERTIES:
:ID: 506c2965-51d6-6cb9-fc4f-4f0468d2d62f
:END:
** TODO Fix board game lookup with name like Unmatched Game System :vrobbler:bug:boardgames:
** DONE Fix board game lookup with name like Unmatched Game System :vrobbler:bug:boardgames:
:PROPERTIES:
:ID: 57956723-b34a-37ad-fde9-44947cc9bb65
:END:
** DONE [#A] Fix raw text webpage title not truncating to 254 chars :vrobbler:personal:bug:webpages:
:PROPERTIES:
:ID: 13fa0efd-2c3f-dd07-deb2-62882096feff

View File

@ -19,7 +19,7 @@ def lookup_boardgame_from_bgg(title: str) -> dict[str, Any]:
game_dict["max_players"] = game.maxplayers
game_dict["recommended_age"] = game.minage
game_dict["rating"] = game.rating_average
game_dict["bgg_id"] = game.id
game_dict["bggeek_id"] = game.id
game_dict["bgg_rank"] = game.bgg_rank
game_dict["base_run_time_seconds"] = (
int(game.playingtime) * 60 if game.playingtime else None