Fixed unable to download due to change in annas archive

This commit is contained in:
dstark5
2023-11-20 23:47:40 -08:00
parent 51283c3410
commit 092f6029b6
2 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@
## 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 Multiple Downloads

View File

@ -154,8 +154,8 @@ class AnnasArchieve {
var document = parse(response.data.toString());
var pTag = document.querySelector('p[class="mb-4"]');
String? link = pTag?.querySelector('a')?.attributes['href'];
var pTag = document.querySelectorAll('p[class="mb-4"]');
String? link = pTag[1].querySelector('a')?.attributes['href'];
return link;
} catch (e) {
// print('${url} ${e}');