From c230f337647258ea946a03c18cb4b3721a1f87c8 Mon Sep 17 00:00:00 2001 From: nyne Date: Tue, 29 Oct 2024 09:52:02 +0800 Subject: [PATCH] fix likes count --- picacg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picacg.js b/picacg.js index 12e45df..5c8af37 100644 --- a/picacg.js +++ b/picacg.js @@ -97,7 +97,7 @@ class Picacg extends ComicSource { subTitle: comic.author, cover: comic.thumb.fileServer + '/static/' + comic.thumb.path, tags: tags, - description: `${comic.totalLikes} likes`, + description: `${comic.totalLikes ?? comic.likesCount} likes`, maxPage: comic.pagesCount, }) }