From c2ad6549fb337ce707e04aa441c9b492171a3b9d Mon Sep 17 00:00:00 2001 From: yzrh Date: Sun, 25 Dec 2022 18:03:01 +0000 Subject: Handle headless HN and page with no image. Signed-off-by: yzrh --- src/melon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/melon.c') diff --git a/src/melon.c b/src/melon.c index af6aaf4..f8bb645 100644 --- a/src/melon.c +++ b/src/melon.c @@ -98,7 +98,8 @@ main(int argc, char **argv) strerror(errno)); return EXIT_FAILURE; } - } else if (strncmp(param->file_stat->type, "HN", 2) == 0) { + } else if (strncmp(param->file_stat->type, "HN", 2) == 0 || + (unsigned char) param->file_stat->type[0] == 0xc8) { if (cnki_hn(¶m) != 0) { fprintf(stderr, "%s: %s\n", argv[0], strerror(errno)); -- cgit v1.2.3