From a60b646e3517d2afe8f29aae9276fa3545532532 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 17 Dec 2019 17:54:45 -0500 Subject: [PATCH] another 8kun fix --- chan/json_kun.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chan/json_kun.py b/chan/json_kun.py index c463728..a626904 100644 --- a/chan/json_kun.py +++ b/chan/json_kun.py @@ -6,6 +6,10 @@ from util import logger class JsonKunChanHelper(JsonChanHelper): + @staticmethod + def item_type(item): + return "thread" if item["resto"] == 0 else "post" + def __init__(self, db_id, base_url, image_url, thread_path, image_path, boards, rps): super().__init__(db_id, base_url, image_url, thread_path, image_path, boards, rps)