Commit b798b1e
feat: ✨ route Coil image loads through authenticated OPDS OkHttp client
Coil's default singleton ImageLoader has no awareness of the OPDS
BasicAuthInterceptor, so cover requests against authenticated calibre-web
instances 401 silently and the catalog grid only ever shows the
gradient+initials fallback. Implement coil.ImageLoaderFactory on
EReaderApp with an ImageLoader built against the existing
OpdsHttpClient.okHttp, so Coil inherits Basic auth (and any future
interceptors) automatically. AppContainer's opdsHttp is promoted from
private to public to be reachable from the Application class.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent dba3079 commit b798b1e
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | | - | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
14 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments