Create correct manga thumbnail url (#601)

Regression introduced with c099e01fb7
This commit is contained in:
schroda
2024-02-16 21:21:47 +01:00
committed by GitHub
parent 4b54b09395
commit aea112e292
5 changed files with 18 additions and 14 deletions

View File

@@ -174,7 +174,10 @@ export class Mangas {
}
static getThumbnailUrl(manga: MangaLastFetchedInfo & Partial<MangaThumbnailInfo>): string {
return manga.thumbnailUrl ? `${manga.thumbnailUrl}?fetchedAt=${manga.lastFetchedAt}` : 'nonExistingMangaUrl';
const thumbnailUrl = manga.thumbnailUrl
? `${manga.thumbnailUrl}?fetchedAt=${manga.lastFetchedAt}`
: 'nonExistingMangaUrl';
return requestManager.getValidImgUrlFor(thumbnailUrl);
}
static async getChapterIdsWithState(