Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(source): Add Linovelib #709

Merged
merged 2 commits into from
Jul 27, 2023

Conversation

alistair3149
Copy link

@alistair3149 alistair3149 commented Jul 26, 2023

Adding Linovelib as a source.

{
    "sourceId": 165,
    "sourceName": "Linovelib",
    "url": "https://w.linovelib.com",
    "lang": "Chinese",
    "icon": "https://w.linovelib.com/images/logo.png"
  }

Caveat: I couldn't get search working as it seems there are some kind of challenge blocking the initial load. Maybe someone can take a look at it.

Closes: LNReader/lnreader-plugins#104


const searchNovels = async searchTerm => {
const url = `${baseUrl}/search.html?searchkey=` + encodeURI(searchTerm);
const result = await fetch(url, {

Choose a reason for hiding this comment

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

You could try using fetchApi / fetchHtml from @utils/fetch/fetch. It allows passing Cloudflare by opening the source in WebView.

Copy link
Author

Choose a reason for hiding this comment

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

I switched it to fetchHtml. However, I don't have a setup that is able to test it. Would someone else be able to test if it is working?

Choose a reason for hiding this comment

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

I'll merge this, you could then download the build artifact from GitHub actions once the build is finished.

@rajarsheechatterjee rajarsheechatterjee merged commit 59d5f08 into LNReader:main Jul 27, 2023
@alistair3149 alistair3149 deleted the plugin-linovelib branch July 27, 2023 07:25
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Source Request] Linovelib
2 participants