Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async function getMangaList (page: string, pageSize: string, keyword?: string, r

const result: IGetMangaListResult = {
list: response.content.map(item => ({
title: item.name,
title: item.metadata.title || item.name,
url: JSON.stringify({
seriesId: item.id,
libraryId: item.libraryId
Expand Down Expand Up @@ -126,7 +126,7 @@ async function getMangaData (metadata: string) {

const response = JSON.parse(rawResponse) as KomgaBooksResponse
result.chapterList = response.content.map(item => ({
title: item.name,
title: item.metadata.title || item.name,
url: item.id // BookId.
}))
} catch (error) {
Expand All @@ -140,7 +140,7 @@ async function getMangaData (metadata: string) {
method: 'GET'
})
const response = JSON.parse(rawResponse) as KomgaSeriesResponse
result.title = response.name
result.title = response.metadata.title || response.name
result.description = response.metadata.summary
} catch (error) {
return window.Rulia.endWithException((error as Error).message)
Expand Down