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; }