Skip to content

Commit f8bf274

Browse files
Copilotwarreth
andcommitted
Restore .org domain and update README with multi-instance feature
- Restore annas-archive.org to default instances (7 total) - Update README features section with multi-instance support details Co-authored-by: warreth <181062918+warreth@users.noreply.github.com>
1 parent ed6b4ef commit f8bf274

2 files changed

Lines changed: 19 additions & 7 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ As [Anna’s Archive](https://annas-archive.org/) Doesn't Have An API. The App W
5050

5151
## Features ✨
5252

53+
- **Multi-Instance Support** - Configure multiple Anna's Archive mirrors with automatic failover
54+
- 7 pre-configured instances (Anna's Archive .org, .gs, .se, .li, .st, .pm + welib.org)
55+
- Add custom mirror instances
56+
- Drag-to-reorder priority
57+
- Enable/disable instances
58+
- Automatic retry (2x per instance) with seamless fallback
5359
- Trending Books
5460
- Download And Read Books With In-Built Viewer
5561
- Supports Epub And Pdf Formats

lib/services/instance_manager.dart

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,48 +88,54 @@ class InstanceManager {
8888
static const String _selectedInstanceKey = 'selected_instance_id';
8989

9090
// Default instances including all Anna's Archive mirrors and welib.org
91-
// Note: .org domain removed as it's no longer available
9291
static final List<ArchiveInstance> _defaultInstances = [
92+
ArchiveInstance(
93+
id: 'annas_archive_org',
94+
name: "Anna's Archive (.org)",
95+
baseUrl: 'https://annas-archive.org',
96+
priority: 0,
97+
enabled: true,
98+
),
9399
ArchiveInstance(
94100
id: 'annas_archive_gs',
95101
name: "Anna's Archive (.gs)",
96102
baseUrl: 'https://annas-archive.gs',
97-
priority: 0,
103+
priority: 1,
98104
enabled: true,
99105
),
100106
ArchiveInstance(
101107
id: 'annas_archive_se',
102108
name: "Anna's Archive (.se)",
103109
baseUrl: 'https://annas-archive.se',
104-
priority: 1,
110+
priority: 2,
105111
enabled: true,
106112
),
107113
ArchiveInstance(
108114
id: 'annas_archive_li',
109115
name: "Anna's Archive (.li)",
110116
baseUrl: 'https://annas-archive.li',
111-
priority: 2,
117+
priority: 3,
112118
enabled: true,
113119
),
114120
ArchiveInstance(
115121
id: 'annas_archive_st',
116122
name: "Anna's Archive (.st)",
117123
baseUrl: 'https://annas-archive.st',
118-
priority: 3,
124+
priority: 4,
119125
enabled: true,
120126
),
121127
ArchiveInstance(
122128
id: 'annas_archive_pm',
123129
name: "Anna's Archive (.pm)",
124130
baseUrl: 'https://annas-archive.pm',
125-
priority: 4,
131+
priority: 5,
126132
enabled: true,
127133
),
128134
ArchiveInstance(
129135
id: 'welib_org',
130136
name: 'Welib.org',
131137
baseUrl: 'https://welib.org',
132-
priority: 5,
138+
priority: 6,
133139
enabled: true,
134140
),
135141
];

0 commit comments

Comments
 (0)