release year in title

This commit is contained in:
mProjectsCode 2022-05-05 21:03:47 +02:00
parent 6dc813a14c
commit 99980028d0
5 changed files with 6 additions and 5 deletions

View file

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