Skip to content

Commit

Permalink
Added ComicK (consumet#287)
Browse files Browse the repository at this point in the history
* Added ComicK

* Add to providers-list

* Fix imports
  • Loading branch information
Eltik authored Mar 4, 2023
1 parent 3438763 commit e5454a1
Show file tree
Hide file tree
Showing 15 changed files with 486 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/extractors/vizcloud.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/extractors/vizcloud.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions dist/providers/manga/comick.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { IMangaChapterPage, IMangaInfo, IMangaResult, ISearch, MangaParser } from '../../models';
declare class ComicK extends MangaParser {
readonly name = "ComicK";
protected baseUrl: string;
protected logo: string;
protected classPath: string;
private readonly apiUrl;
/**
* @description Fetches info about the manga
* @param mangaId Comic slug
* @returns Promise<IMangaInfo>
*/
fetchMangaInfo: (mangaId: string) => Promise<IMangaInfo>;
/**
*
* @param chapterId Chapter ID (HID)
* @returns Promise<IMangaChapterPage[]>
*/
fetchChapterPages: (chapterId: string) => Promise<IMangaChapterPage[]>;
/**
* @param query search query
* @param page page number (default: 1)
* @param limit limit of results to return (default: 20) (max: 100) (min: 1)
*/
search: (query: string, page?: number, limit?: number) => Promise<ISearch<IMangaResult>>;
private fetchAllChapters;
/**
* @description Fetches the comic ID from the slug
* @param id Comic slug
* @returns Promise<number> -1 if not found
*/
private getComicId;
}
export default ComicK;
144 changes: 144 additions & 0 deletions dist/providers/manga/comick.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/providers/manga/comick.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/providers/manga/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import MangaDex from './mangadex';
import ComicK from './comick';
import MangaHere from './mangahere';
import MangaKakalot from './mangakakalot';
import Mangasee123 from './mangasee123';
Expand All @@ -7,6 +8,7 @@ import MangaPill from './mangapill';
import MangaReader from './mangareader';
declare const _default: {
MangaDex: typeof MangaDex;
ComicK: typeof ComicK;
MangaHere: typeof MangaHere;
MangaKakalot: typeof MangaKakalot;
Mangasee123: typeof Mangasee123;
Expand Down
3 changes: 2 additions & 1 deletion dist/providers/manga/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/providers/manga/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e5454a1

Please sign in to comment.