lnreader-plugins icon indicating copy to clipboard operation
lnreader-plugins copied to clipboard

new source dilar.tube

Open Dredd1987 opened this issue 1 year ago • 10 comments

I got stuck on search and chapter parsing. Maybe you can help.

Dredd1987 avatar Aug 27 '24 00:08 Dredd1987

Where did you get stuck?. Like cloudflare issue or understanding language issue

hoangquan0511 avatar Aug 27 '24 02:08 hoangquan0511

I fail to fetch the response of search, the entire novels novelsearch function doesn't work, as for the chapterText I think it pulls the page before the text being populated. And the search response is encrypted I think a got It right but don't know if can be done in the plugin it self or it gonna severely affect the preformance

Dredd1987 avatar Aug 27 '24 03:08 Dredd1987

It's a bit difficult to sort through the site am translating as I go

Dredd1987 avatar Aug 27 '24 03:08 Dredd1987

I see that they use quick_search api entry for searching in app bar. Have you tired it?

hoangquan0511 avatar Aug 27 '24 03:08 hoangquan0511

image

const formData = new FormData();
formData.append('query', 'wife');
formData.append('includes', '["Manga","Team","Member"]');
fetch('https://dilar.tube/api/quick_search', {
    method: 'POST',
    body: formData,
}).then(a => a.json()).then(b => console.log(b));

edit as needed

K1ngfish3r avatar Aug 27 '24 07:08 K1ngfish3r

What's current status?

K1ngfish3r avatar Sep 03 '24 00:09 K1ngfish3r

By default, the crypto module is missing from react-native. Have you found a replacement for it? For example, ~expo-crypto~, react-native-quick-crypto, crypto-browserify.

Rider21 avatar Sep 03 '24 07:09 Rider21

What's current status?

Sorry, I got really busy. The chapter content is still returning an error with the connection being refused.

Dredd1987 avatar Sep 03 '24 10:09 Dredd1987

By default, the crypto module is missing from react-native. Have you found a replacement for it? For example, ~expo-crypto~, react-native-quick-crypto, crypto-browserify.

I abandoned this approach because of a CORS error. It works in my tests, but not at all in the app.

Dredd1987 avatar Sep 03 '24 10:09 Dredd1987

What's current status?

Sorry, I got really busy. The chapter content is still returning an error with the connection being refused.

Scratch that it works in the app; however, it's messy. The latest has duplicates spread across several pages. Can't return popular—main search function not available, so popular returns latest. Otherwise, it works. And chapter names, when empty, still return empty rather than the chapter index.

Dredd1987 avatar Sep 03 '24 11:09 Dredd1987