Open idMysteries opened 1 year ago
this.queryChapters = 'div#chapterlist ul li div.eph-num a';
@MangaStream.MangasSinglePageCSS('div#content div.soralist ul li a.series', '/series/list-mode/') @MangaStream.ChaptersSinglePageCSS('div.eplister ul li a', 'div:not(.epl-date)')
some sites use eplister (and eplisterfull), some #chapterlist
https://imperfectcomic.org/manga/it-starts-with-a-kingpin-account/ div#chapterlist ul li div.eph-num a
There is no WP MangaStream code on github. Maybe I'll find it on the Internet to find out what principle it works on. Why do some use eplister and others use chapterlist
Hmmm...
<domain>/series/<slug> -> eplister
<domain>/manga/<slup> -> #chapterlist ul li .eph-num a
UPD: not for all sources.
After changes in #501, now we can test a novel url against templates. Having more templates will be very useful.
Can this test be run in github actions?
No, it is not actually a test. It is for matching the templates against the novel url and auto-generating a source file. for it
Since you have already done some research on this template, can you make a PR creating one?
OK... I'll try
@dipu-bd I have a question about the Chapter id. Should it be an order from 1 to N or can it be a random order, for example from 342 to 101. Will the result then be sorted by id?
I noticed that some chapters are sorted in descending order and some in ascending order. And they have an id that seems to be correct.
Or should I just write a small order detector? Like... "if next_id < prev_id then reverse else no"
~Chapters will not be sorted. Please assign 1 to N for now. I will add some logic for checking it later~
Edit: I added the logic to sort volumes and chapters.
@idMysteries Are you working on this eplister template?
@idMysteries Are you working on this eplister template?
Yes, I haven't had time in the last couple of days. But now I will do it according to the new templates.
https://github.com/dipu-bd/lightnovel-crawler/issues/1643
eplister (eplisterfull)
https://themesia.com/mangastream-wordpress-theme/
Our crawlers: https://github.com/dipu-bd/lightnovel-crawler/blob/2d631a85cd214775b629f8864e3469996afb8efa/sources/en/n/novelsemperor.py https://github.com/dipu-bd/lightnovel-crawler/blob/f772831b61192828184ec692d50d45a774e57d08/sources/en/t/tamagotl.py https://github.com/dipu-bd/lightnovel-crawler/blob/b40a99846a6af0666cb81d8aa1af1567de2a7425/sources/en/m/mltnovels.py https://github.com/dipu-bd/lightnovel-crawler/blob/b30a47fd2832f618c462274e302663124c4c23cc/sources/pt/centralnovel.py