From 7f7645023ddc30468e05f28870d6d3adbabc9db6 Mon Sep 17 00:00:00 2001 From: Nanashi <180722554+jackedtea@users.noreply.github.com> Date: Sun, 13 Sep 2026 12:21:19 +0700 Subject: [PATCH] feat (lnhako): add support latest --- plugins/vietnamese/LNHako.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/plugins/vietnamese/LNHako.ts b/plugins/vietnamese/LNHako.ts index 547e88f1c..ff1e45659 100644 --- a/plugins/vietnamese/LNHako.ts +++ b/plugins/vietnamese/LNHako.ts @@ -20,7 +20,7 @@ class HakoPlugin implements Plugin.PluginBase { name = 'Hako'; icon = 'src/vi/hakolightnovel/icon.png'; site = 'https://ln.hako.vn'; - version = '1.1.1'; + version = '1.2.0'; parseNovels(url: string) { return fetchApi(url) .then(res => res.text()) @@ -59,10 +59,15 @@ class HakoPlugin implements Plugin.PluginBase { } popularNovels( pageNo: number, - { filters }: Plugin.PopularNovelsOptions, + { + showLatestNovels, + filters, + }: Plugin.PopularNovelsOptions, ): Promise { let link = this.site + '/danh-sach'; - if (filters) { + if (showLatestNovels) { + link += '?sapxep=capnhat&page=' + pageNo; + } else if (filters) { if (filters.alphabet.value) { link += '/' + filters.alphabet.value; }