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

@ -50,7 +50,7 @@ const cleanName = (rawData: RawName) => {
caption: main.primaryVideos.edges[0].node.description?.value ?? null,
urls: main.primaryVideos.edges[0].node.playbackURLs.map(url => ({
resolution: url.displayName.value,
mimeType: url.mimeType,
mimeType: url.mimeType ?? null,
url: url.url,
})),
},