mirror of
https://github.com/dstark5/Openlib.git
synced 2025-07-04 13:46:28 +08:00
Fixed unable to download due to change in annas archive
This commit is contained in:
@ -40,7 +40,7 @@
|
|||||||
##### As [Anna’s Archive](https://annas-archive.org/) Doesn't Have An API.The App Works By Sending Request To Anna’s Archive And Parses The Response To objects.The App Extracts The Mirrors From Response And Downloads The Book.
|
##### As [Anna’s Archive](https://annas-archive.org/) Doesn't Have An API.The App Works By Sending Request To Anna’s Archive And Parses The Response To objects.The App Extracts The Mirrors From Response And Downloads The Book.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
- Trending Books
|
- Trending Books
|
||||||
- Download And Read Books With In-Built Viewer
|
- Download And Read Books With In-Built Viewer
|
||||||
- Supports Epub And Pdf Formats
|
- Supports Epub And Pdf Formats
|
||||||
- Open Books In Your Favourite Ebook Reader
|
- Open Books In Your Favourite Ebook Reader
|
||||||
@ -50,7 +50,7 @@
|
|||||||
|
|
||||||
## Roadmap
|
## Roadmap
|
||||||
|
|
||||||
- Additing More Book Format supports (cbz,cbr,azw3,etc...)
|
- Adding More Book Format supports (cbz,cbr,azw3,etc...)
|
||||||
- Adding Support For Background Downloads
|
- Adding Support For Background Downloads
|
||||||
- Adding Support For Multiple Downloads
|
- Adding Support For Multiple Downloads
|
||||||
|
|
||||||
|
@ -154,8 +154,8 @@ class AnnasArchieve {
|
|||||||
|
|
||||||
var document = parse(response.data.toString());
|
var document = parse(response.data.toString());
|
||||||
|
|
||||||
var pTag = document.querySelector('p[class="mb-4"]');
|
var pTag = document.querySelectorAll('p[class="mb-4"]');
|
||||||
String? link = pTag?.querySelector('a')?.attributes['href'];
|
String? link = pTag[1].querySelector('a')?.attributes['href'];
|
||||||
return link;
|
return link;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// print('${url} ${e}');
|
// print('${url} ${e}');
|
||||||
|
Reference in New Issue
Block a user