Skip to content

hajaulee/dotru-extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dotru-extensions

Extensions sources for Dotru manga reader.

Base model


class BaseParser {

  name: string;
  version: string;
  thumbnail: string;
  lang: string;
  baseUrl: string;
  supportsLatest: boolean;
  httpGetSync: (
    url: string,
    useProxy: boolean,
    useCache: boolean,
    proxyParams: ProxyParams,
    headers: { [k: string]: string },
    timeout : number
  ) => string;

  headerBuilder: () => any;

  // Popular
  popularMangaRequest: (page: number) => string;
  popularMangaNextPageSelector: () => string;
  popularMangaSelector: () => string;
  popularMangaParse?: (doc: any) => SManga[];
  popularMangaFromElement: (e: any) => SManga;

  // Latest
  latestUpdatesRequest: (page: number) => string;
  latestUpdatesNextPageSelector: () => string;
  latestUpdatesSelector: () => string;
  latestMangaParse?: (doc: any) => SManga[];
  latestUpdatesFromElement: (element: any) => SManga;

  // Search
  searchMangaRequest: (page: number, query: string, filters: FilterList) => string;
  searchMangaNextPageSelector: () => string;
  searchMangaSelector: () => string;
  searchMangaParse?: (doc: any) => SManga[];
  searchMangaFromElement: (element: any) => SManga;

  // Detail
  mangaDetailsParse: (doc: any) => SManga;

  // Chapters

  chapterListSelector: () => string;
  chapterListParse?: (doc: any) => SChapter[];
  chapterFromElement: (element: any) => SChapter;

  // Pages
  pageListParse: (doc: any) => SPage[];

}

App repo

https://github.com/hajaulee/dotru

About

Extensions sources for Dotru manga reader.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published