Modal helper

This commit is contained in:
mProjectsCode 2022-10-01 21:50:59 +02:00
parent 25b899daa5
commit 5aa9108509
3 changed files with 169 additions and 144 deletions

View file

@ -79,17 +79,16 @@ export class BoardGameGeekAPI extends APIModel {
const genres = Array.from(boardgame.querySelectorAll('boardgamecategory')).map(n => n!.textContent!);
const model = new BoardGameModel({
type: MediaType.BoardGame,
title,
englishTitle: title,
year: year === '0' ? '' : year,
dataSource: this.apiName,
url: `https://boardgamegeek.com/boardgame/${id}`,
id,
id: id,
genres,
onlineRating,
image,
genres: genres,
onlineRating: onlineRating,
image: image,
released: true,
userData: {