series for MAL

This commit is contained in:
mProjectsCode 2022-05-09 16:52:17 +02:00
parent c7a75ff93c
commit ac82168740
8 changed files with 101 additions and 80 deletions

View file

@ -20,8 +20,8 @@ export class MediaDbSearchResultModal extends SuggestModal<MediaTypeModel> {
// Renders each suggestion item.
renderSuggestion(item: MediaTypeModel, el: HTMLElement) {
el.createEl('div', {text: item.premiere ? `${item.title} (${item.premiere})` : `${item.title}`});
el.createEl('small', {text: `${item.type} from ${item.dataSource}`});
el.createEl('div', {text: item.getFileName()});
el.createEl('small', {text: `${item.type.toUpperCase()} from ${item.dataSource}`});
}
// Perform action on the selected suggestion.