Skip to content

Commit 217e4f7

Browse files
Merge pull request #63 from mProjectsCode/O_O
merge O_O
2 parents 3db3496 + a75e0cc commit 217e4f7

14 files changed

+813
-225
lines changed

src/api/apis/BoardGameGeekAPI.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import MediaDbPlugin from '../../main';
44
import {BoardGameModel} from 'src/models/BoardGameModel';
55
import {debugLog} from '../../utils/Utils';
66
import {requestUrl} from 'obsidian';
7-
import {MediaType} from '../../utils/MediaType';
87

98
export class BoardGameGeekAPI extends APIModel {
109
plugin: MediaDbPlugin;
@@ -79,17 +78,16 @@ export class BoardGameGeekAPI extends APIModel {
7978
const genres = Array.from(boardgame.querySelectorAll('boardgamecategory')).map(n => n!.textContent!);
8079

8180
const model = new BoardGameModel({
82-
type: MediaType.BoardGame,
8381
title,
8482
englishTitle: title,
8583
year: year === '0' ? '' : year,
8684
dataSource: this.apiName,
8785
url: `https://boardgamegeek.com/boardgame/${id}`,
88-
id,
86+
id: id,
8987

90-
genres,
91-
onlineRating,
92-
image,
88+
genres: genres,
89+
onlineRating: onlineRating,
90+
image: image,
9391
released: true,
9492

9593
userData: {

src/api/apis/WikipediaAPI.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export class WikipediaAPI extends APIModel {
6666
englishTitle: result.title,
6767
year: '',
6868
dataSource: this.apiName,
69+
url: result.fullurl,
6970
id: result.pageid,
7071

7172
wikiUrl: result.fullurl,

0 commit comments

Comments
 (0)