aboutsummaryrefslogtreecommitdiffstats
path: root/src/melon.c
diff options
context:
space:
mode:
authoryzrh <yzrh@noema.org>2022-12-25 18:03:01 +0000
committeryzrh <yzrh@noema.org>2022-12-25 23:18:17 +0000
commitc2ad6549fb337ce707e04aa441c9b492171a3b9d (patch)
tree611b43986a0c50d335ba69aafc8ace26cdcaffd3 /src/melon.c
parentd2826fa075544ada1fb9f530a375ef85f58c8ea0 (diff)
downloadmelon-c2ad6549fb337ce707e04aa441c9b492171a3b9d.tar.gz
melon-c2ad6549fb337ce707e04aa441c9b492171a3b9d.tar.zst
Handle headless HN and page with no image.
Signed-off-by: yzrh <yzrh@noema.org>
Diffstat (limited to 'src/melon.c')
-rw-r--r--src/melon.c3
1 files changed, 2 insertions, 1 deletions
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(&param) != 0) {
fprintf(stderr, "%s: %s\n", argv[0],
strerror(errno));