fix(title): fix title route crash

was due to non-existance of genres on "more like this" for some titles

closes https://github.com/zyachel/libremdb/issues/61
This commit is contained in:
zyachel
2023-12-07 23:38:18 +05:30
parent 246f1155d5
commit a5b7d52783
5 changed files with 7 additions and 7 deletions

View File

@ -143,7 +143,7 @@ export default interface Name {
value: string;
language: string;
};
mimeType: string;
mimeType?: string;
url: string;
}>;
recommendedTimedTextTrack?: {

View File

@ -138,7 +138,7 @@ export default interface RawTitle {
value: string;
language: string;
};
mimeType: string;
mimeType?: string;
url: string;
}>;
previewURLs: Array<{
@ -516,7 +516,7 @@ export default interface RawTitle {
canRate: {
isRatable: boolean;
};
titleGenres: {
titleGenres?: {
genres: Array<{
genre: {
text: string;