remove extra logging
This commit is contained in:
parent
f488018f15
commit
642aa02937
2 changed files with 4 additions and 4 deletions
|
|
@ -22,7 +22,7 @@ export class MobyGamesAPI extends APIModel {
|
|||
console.log(`MDB | api "${this.apiName}" queried by Title`);
|
||||
|
||||
if(!this.plugin.settings.MobyGamesKey) {
|
||||
throw Error(`MDB | MobyGames ${this.apiName} API key missing.`);
|
||||
throw Error(`MDB | ${this.apiName} API key missing.`);
|
||||
}
|
||||
|
||||
const searchUrl = `${this.apiUrl}/games?title=${encodeURIComponent(title)}&api_key=${this.plugin.settings.MobyGamesKey}`;
|
||||
|
|
@ -65,7 +65,7 @@ export class MobyGamesAPI extends APIModel {
|
|||
console.log(`MDB | api "${this.apiName}" queried by ID`);
|
||||
|
||||
if(!this.plugin.settings.MobyGamesKey) {
|
||||
throw Error(`MDB | MobyGames ${this.apiName} API key missing.`);
|
||||
throw Error(`MDB | ${this.apiName} API key missing.`);
|
||||
}
|
||||
|
||||
const searchUrl = `${this.apiUrl}/games?id=${encodeURIComponent(id)}&api_key=${this.plugin.settings.MobyGamesKey}`;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ export class OMDbAPI extends APIModel {
|
|||
console.log(`MDB | api "${this.apiName}" queried by Title`);
|
||||
|
||||
if(!this.plugin.settings.OMDbKey) {
|
||||
throw Error(`MDB | OMDb ${this.apiName} API key missing.`);
|
||||
throw Error(`MDB | ${this.apiName} API key missing.`);
|
||||
}
|
||||
|
||||
const searchUrl = `https://www.omdbapi.com/?s=${encodeURIComponent(title)}&apikey=${this.plugin.settings.OMDbKey}`;
|
||||
|
|
@ -107,7 +107,7 @@ export class OMDbAPI extends APIModel {
|
|||
console.log(`MDB | api "${this.apiName}" queried by ID`);
|
||||
|
||||
if(!this.plugin.settings.OMDbKey) {
|
||||
throw Error(`MDB | OMDb ${this.apiName} API key missing.`);
|
||||
throw Error(`MDB | ${this.apiName} API key missing.`);
|
||||
}
|
||||
|
||||
const searchUrl = `https://www.omdbapi.com/?i=${encodeURIComponent(id)}&apikey=${this.plugin.settings.OMDbKey}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue