Added plot section for books
This commit is contained in:
parent
57de3d614c
commit
18f4412158
2 changed files with 2 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ export class OpenLibraryAPI extends APIModel {
|
||||||
englishTitle: result.title_english ?? result.title,
|
englishTitle: result.title_english ?? result.title,
|
||||||
|
|
||||||
author: result.author_name ?? 'unknown',
|
author: result.author_name ?? 'unknown',
|
||||||
|
plot: result.description ?? 'unknown',
|
||||||
pages: result.number_of_pages_median ?? 'unknown',
|
pages: result.number_of_pages_median ?? 'unknown',
|
||||||
onlineRating: Number.parseFloat(Number(result.ratings_average ?? 0).toFixed(2)),
|
onlineRating: Number.parseFloat(Number(result.ratings_average ?? 0).toFixed(2)),
|
||||||
image: `https://covers.openlibrary.org/b/OLID/` + result.cover_edition_key + `-L.jpg` ?? '',
|
image: `https://covers.openlibrary.org/b/OLID/` + result.cover_edition_key + `-L.jpg` ?? '',
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import { MediaType } from '../utils/MediaType';
|
||||||
|
|
||||||
export class BookModel extends MediaTypeModel {
|
export class BookModel extends MediaTypeModel {
|
||||||
author: string;
|
author: string;
|
||||||
|
plot:string;
|
||||||
pages: number;
|
pages: number;
|
||||||
image: string;
|
image: string;
|
||||||
onlineRating: number;
|
onlineRating: number;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue