update packages; run formatter
This commit is contained in:
parent
75f3a5903c
commit
9257d8e722
5 changed files with 388 additions and 265 deletions
|
|
@ -119,7 +119,7 @@ Now you select the result you want and the plugin will cast it's magic and creat
|
||||||
| [Wikipedia](https://en.wikipedia.org/wiki/Main_Page) | The Wikipedia API allows access to all Wikipedia articles. | wiki articles | No | None | No |
|
| [Wikipedia](https://en.wikipedia.org/wiki/Main_Page) | The Wikipedia API allows access to all Wikipedia articles. | wiki articles | No | None | No |
|
||||||
| [Steam](https://store.steampowered.com/) | The Steam API offers information on all steam games. | games | No | 10000 per day | No |
|
| [Steam](https://store.steampowered.com/) | The Steam API offers information on all steam games. | games | No | 10000 per day | No |
|
||||||
| [Open Library](https://openlibrary.org) | The OpenLibrary API offers metadata for books | books | No | Cover access is rate-limited when not using CoverID or OLID by max 100 requests/IP every 5 minutes. This plugin uses OLID so there shouldn't be a rate limit. | No |
|
| [Open Library](https://openlibrary.org) | The OpenLibrary API offers metadata for books | books | No | Cover access is rate-limited when not using CoverID or OLID by max 100 requests/IP every 5 minutes. This plugin uses OLID so there shouldn't be a rate limit. | No |
|
||||||
| [Moby Games](https://www.mobygames.com) | The Moby Games API offers metadata for games for all platforms | games | Yes, by making an account [here](https://www.mobygames.com/user/register/) | API requests are limited to 360 per hour (one every ten seconds). In addition, requests should be made no more frequently than one per second. | No |
|
| [Moby Games](https://www.mobygames.com) | The Moby Games API offers metadata for games for all platforms | games | Yes, by making an account [here](https://www.mobygames.com/user/register/) | API requests are limited to 360 per hour (one every ten seconds). In addition, requests should be made no more frequently than one per second. | No |
|
||||||
|
|
||||||
#### Notes
|
#### Notes
|
||||||
|
|
||||||
|
|
@ -157,7 +157,6 @@ Now you select the result you want and the plugin will cast it's magic and creat
|
||||||
- you can find this ID in the URL
|
- you can find this ID in the URL
|
||||||
- e.g. for "Bioshock 2" the URL looks like this `https://www.mobygames.com/game/45089/bioshock-2/` so the ID is `45089`
|
- e.g. for "Bioshock 2" the URL looks like this `https://www.mobygames.com/game/45089/bioshock-2/` so the ID is `45089`
|
||||||
|
|
||||||
|
|
||||||
### Problems, unexpected behavior or improvement suggestions?
|
### Problems, unexpected behavior or improvement suggestions?
|
||||||
|
|
||||||
You are more than welcome to open an issue on [GitHub](https://github.com/mProjectsCode/obsidian-media-db-plugin/issues).
|
You are more than welcome to open an issue on [GitHub](https://github.com/mProjectsCode/obsidian-media-db-plugin/issues).
|
||||||
|
|
|
||||||
642
package-lock.json
generated
642
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -50,7 +50,6 @@ export class MobyGamesAPI extends APIModel {
|
||||||
year: new Date(result.platforms[0].first_release_date).getFullYear().toString(),
|
year: new Date(result.platforms[0].first_release_date).getFullYear().toString(),
|
||||||
dataSource: this.apiName,
|
dataSource: this.apiName,
|
||||||
id: result.game_id,
|
id: result.game_id,
|
||||||
|
|
||||||
} as GameModel),
|
} as GameModel),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -73,8 +73,7 @@ export default class MediaDbPlugin extends Plugin {
|
||||||
this.app.workspace.on('file-menu', (menu, file) => {
|
this.app.workspace.on('file-menu', (menu, file) => {
|
||||||
if (file instanceof TFolder) {
|
if (file instanceof TFolder) {
|
||||||
menu.addItem(item => {
|
menu.addItem(item => {
|
||||||
item
|
item.setTitle('Import folder as Media DB entries')
|
||||||
.setTitle('Import folder as Media DB entries')
|
|
||||||
.setIcon('database')
|
.setIcon('database')
|
||||||
.onClick(() => this.createEntriesFromFolder(file));
|
.onClick(() => this.createEntriesFromFolder(file));
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@ export class MediaDbSettingTab extends PluginSettingTab {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
new Setting(containerEl)
|
new Setting(containerEl)
|
||||||
.setName('Moby Games key')
|
.setName('Moby Games key')
|
||||||
.setDesc('API key for "www.mobygames.com".')
|
.setDesc('API key for "www.mobygames.com".')
|
||||||
.addText(cb => {
|
.addText(cb => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue