Made several improvements
- Replaced interpolated string to a new function getDisabledMediaTypes() - Added override for every API with the plugin settings for disabled media types - Added _disabledMediaTypes for API's even if they are the only provider of a media type - Replaced static apiMediaTypes to a dynamic version
This commit is contained in:
parent
666ca1e93b
commit
72198abd33
12 changed files with 69 additions and 33 deletions
|
|
@ -223,4 +223,8 @@ export class OMDbAPI extends APIModel {
|
|||
|
||||
throw new Error(`MDB | Unknown media type for id ${id}`);
|
||||
}
|
||||
|
||||
getDisabledMediaTypes(): MediaType[] {
|
||||
return this.plugin.settings.OMDbAPI_disabledMediaTypes as MediaType[];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue