mirror of
https://github.com/dstark5/Openlib.git
synced 2026-03-13 09:12:57 +08:00
updated dommain:from annas-archive.org to annas-archive.se (#170)
Co-authored-by: Matsu23 <matsu23@protonmail.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# Openlib
|
# Openlib
|
||||||
|
|
||||||
An Open source app to download and read books from shadow library ([Anna’s Archive](https://annas-archive.org/))
|
An Open source app to download and read books from shadow library ([Anna’s Archive](https://annas-archive.se/))
|
||||||
|
|
||||||
[](https://flutter.dev/)
|
[](https://flutter.dev/)
|
||||||
[](https://opensource.org/licenses/)
|
[](https://opensource.org/licenses/)
|
||||||
@@ -43,9 +43,9 @@ An Open source app to download and read books from shadow library ([Anna’s Arc
|
|||||||
|
|
||||||
## Description 📖
|
## Description 📖
|
||||||
|
|
||||||
Openlib Is An Open Source App To Download And Read Books From Shadow Library ([Anna’s Archive](https://annas-archive.org/)). The App Has Built In Reader to Read Books
|
Openlib Is An Open Source App To Download And Read Books From Shadow Library ([Anna’s Archive](https://annas-archive.se/)). The App Has Built In Reader to Read Books
|
||||||
|
|
||||||
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.se/) 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 ✨
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ Please report bugs via the [issue tracker](https://github.com/dstark5/Openlib/is
|
|||||||
|
|
||||||
If you like Openlib, you're welcome to send a donation.
|
If you like Openlib, you're welcome to send a donation.
|
||||||
|
|
||||||
[Donate To Anna’s Archive.](https://annas-archive.org/donate?tier=1)
|
[Donate To Anna’s Archive.](https://annas-archive.se/donate?tier=1)
|
||||||
|
|
||||||
## License 📜
|
## License 📜
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,6 @@
|
|||||||
<domain includeSubdomains="true">127.0.0.1</domain>
|
<domain includeSubdomains="true">127.0.0.1</domain>
|
||||||
</domain-config>
|
</domain-config>
|
||||||
<domain-config cleartextTrafficPermitted="false">
|
<domain-config cleartextTrafficPermitted="false">
|
||||||
<domain includeSubdomains="true">annas-archive.org</domain>
|
<domain includeSubdomains="true">annas-archive.se</domain>
|
||||||
</domain-config>
|
</domain-config>
|
||||||
</network-security-config>
|
</network-security-config>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<p>
|
<p>
|
||||||
<b><i>Openlib</i></b> is an open source app to download and read books from shadow library (<a href='https://annas-archive.org/' target='_blank' rel='nofollow noopener'>Anna’s Archive</a>). The App Has Built In Reader to Read Books.
|
<b><i>Openlib</i></b> is an open source app to download and read books from shadow library (<a href='https://annas-archive.se/' target='_blank' rel='nofollow noopener'>Anna’s Archive</a>). The App Has Built In Reader to Read Books.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
As <i>Anna’s Archive</i> doesn't have an API, the app works by sending requests to <i>Anna’s Archive</i> and parses the response to objects. The app extracts the mirrors from the responses, downloads the book and stores it in the application's document directory.
|
As <i>Anna’s Archive</i> doesn't have an API, the app works by sending requests to <i>Anna’s Archive</i> and parses the response to objects. The app extracts the mirrors from the responses, downloads the book and stores it in the application's document directory.
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class BookInfoData extends BookData {
|
|||||||
// ====================================================================
|
// ====================================================================
|
||||||
|
|
||||||
class AnnasArchieve {
|
class AnnasArchieve {
|
||||||
static const String baseUrl = "https://annas-archive.org";
|
static const String baseUrl = "https://annas-archive.se";
|
||||||
|
|
||||||
final Dio dio = Dio();
|
final Dio dio = Dio();
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ List<String> _reorderMirrors(List<String> mirrors) {
|
|||||||
if (element.contains('ipfs') == true) {
|
if (element.contains('ipfs') == true) {
|
||||||
ipfsMirrors.add(element);
|
ipfsMirrors.add(element);
|
||||||
} else {
|
} else {
|
||||||
if (element.startsWith('https://annas-archive.org') != true &&
|
if (element.startsWith('https://annas-archive.se') != true &&
|
||||||
element.startsWith('https://1lib.sk') != true) {
|
element.startsWith('https://1lib.sk') != true) {
|
||||||
httpsMirrors.add(element);
|
httpsMirrors.add(element);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user