From fb146b1eec6a749b456a10fcbae71e5ce363efe7 Mon Sep 17 00:00:00 2001 From: nyne Date: Wed, 18 Sep 2024 21:41:44 +0800 Subject: [PATCH] fix hitomi history cover --- lib/comic_source/built_in/hitomi.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/comic_source/built_in/hitomi.dart b/lib/comic_source/built_in/hitomi.dart index 7a6b382c..6b12ea81 100644 --- a/lib/comic_source/built_in/hitomi.dart +++ b/lib/comic_source/built_in/hitomi.dart @@ -41,6 +41,11 @@ final hitomi = ComicSource.named( comicPageBuilder: (context, id, cover) { return HitomiComicPage.fromLink(id, cover: cover); }, + getThumbnailLoadingConfig: (url) { + return { + "headers": {"User-Agent": webUA, "Referer": "https://hitomi.la/"}, + }; + }, ); class _HiComicTile extends ComicTile {