Add more detail to search results

Adds getSummary to the MediaTypeModel.ts abstract class, which allows individual models to give more detail to better allow people to pick the right result
This commit is contained in:
Conor Meyers 2022-08-23 15:51:29 +01:00
parent e4788750f7
commit 39017bfa82
7 changed files with 23 additions and 1 deletions

View file

@ -44,4 +44,7 @@ export class MovieModel extends MediaTypeModel {
return MediaType.Movie;
}
getSummary(): string {
return this.englishTitle + ' (' + this.year + ')';
}
}