Skip to content

Add TiemtruyenchuParser#2571

Merged
dteviot merged 1 commit intodteviot:ExperimentalTabModefrom
meowmereo:features/Add-TiemtruyenchuParser
Mar 24, 2026
Merged

Add TiemtruyenchuParser#2571
dteviot merged 1 commit intodteviot:ExperimentalTabModefrom
meowmereo:features/Add-TiemtruyenchuParser

Conversation

@meowmereo
Copy link
Contributor

Add TiemtruyenchuParser for tiemtruyenchu.com

Add TiemtruyenchuParser for tiemtruyenchu.com
let links = Array.from(dom.querySelectorAll("a.chapter-item-link"));

links.forEach(link => {
let href = link.getAttribute("href");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just use

let href = link.href;

This will give you the full URL, if the link has an href

}

findCoverImageUrl(dom) {
let img = dom.querySelector(".story-poster");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems complicated. I'll check it tonight

@dteviot dteviot merged commit e468cdb into dteviot:ExperimentalTabMode Mar 24, 2026
1 check passed
@dteviot
Copy link
Owner

dteviot commented Mar 24, 2026

Thank you.

@dteviot
Copy link
Owner

dteviot commented Mar 24, 2026

@meowmereo

Fixes: 500c95c

Notes,

  1. As chapters are in order on page, don't need to sort them.
  2. WebToEpub will remove any duplicate chapter URLs automatically.
  3. Removing unwanted elements should be done in removeUnwantedElementsFromContentElement()
  4. util.getFirstImgSrc() will return the src of the first image node that is a child of the supplied CSS.

@meowmereo
Copy link
Contributor Author

Thanks for the fixes! Looks very good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants