Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Fix getViewMoreItems for ksk
Browse files Browse the repository at this point in the history
  • Loading branch information
WaltersAsh committed Jul 23, 2023
1 parent 62a99ea commit 1a9da06
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/Koushoku/Koushoku.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
} from './KoushokuParser';

export const KoushokuInfo: SourceInfo = {
version: '1.0.0',
version: '1.0.1',
name: 'Koushoku',
icon: 'icon.png',
author: 'WaltersAsh',
Expand Down Expand Up @@ -140,7 +140,7 @@ export class Koushoku implements SearchResultsProviding, MangaProviding, Chapter
});
const responseForRecentManga = await this.requestManager.schedule(requestForRecentManga, 1);
const $recentManga = this.cheerio.load(responseForRecentManga.data as string);
const recentMangaSection = App.createHomeSection({id: 'recent Manga', title: 'Recent Manga',
const recentMangaSection = App.createHomeSection({id: 'recent manga', title: 'Recent Manga',
containsMoreItems: true, type: HomeSectionType.singleRowNormal});
const recentMangaAlbums = getAlbums($recentManga);
recentMangaSection.items = recentMangaAlbums;
Expand Down Expand Up @@ -174,6 +174,15 @@ export class Koushoku implements SearchResultsProviding, MangaProviding, Chapter
case 'popular monthly':
param = `/popular/monthly/page/${albumNum}`;
break;
case 'recent doujins':
param = `/browse/page/${albumNum}?cat=2&sort=16`;
break;
case 'recent manga':
param = `/browse/page/${albumNum}?cat=1`;
break;
case 'recent illustrations':
param = `/browse/page/${albumNum}?cat=4`;
break;
default:
throw new Error('Requested to getViewMoreItems for a section ID which doesn\'t exist');
}
Expand Down

0 comments on commit 1a9da06

Please sign in to comment.