Serve EPUBs instead XTC in daily OPDS
It turns out it is currently impossible for the Xteink X4 to download XTC files from an OPDS server. So I switched the built-in OPDS server in this binary (daily.hallada.net/opds) to serve the EPUB files instead of the XTC files. The X4 is pretty capable of reading the X4 edition of the EPUB that was optimized for it anyways, and I prefer the flexibility of EPUB, so I might end up eventually deleting the XTC conversion. For now, I kept the conversion step (in case I ever want to ever try manually copying them to the device) and I keep a limited number of XTC issues on the server since they are quite big in filesize. The BookOrbit integration is now optional since the built-in OPDS server is able to serve the EPUBs. In my installation, I serve the EPUBs through both. The daily.hallada.net/opds server is just a little quicker to navigate and download the EPUBs on the X4 since the BookOrbit OPDS requires diving into a couple layers of folders before you get to the files.
This commit is contained in:
+8
-2
@@ -11,7 +11,8 @@ timezone = "America/New_York"
|
||||
lookback_hours = 26
|
||||
target_article_count = 20
|
||||
prefilter_keep = 120
|
||||
retention_days = 21
|
||||
retention_days = 21 # EPUBs, by age
|
||||
xtc_retention_count = 5 # XTC issues, by count (~80-100 MB each)
|
||||
max_daily_usd = 2.0
|
||||
world_briefing = true
|
||||
|
||||
@@ -59,7 +60,12 @@ sections = [
|
||||
]
|
||||
|
||||
[publish]
|
||||
bookorbit_dir = "/srv/bookorbit/libraries/daily-epub"
|
||||
# Where both EPUB editions land, and what the OPDS feed lists. BookOrbit is
|
||||
# optional — it just watches this folder if you run it.
|
||||
# (Renamed from `bookorbit_dir`; the old key is now a hard config error.)
|
||||
epub_dir = "/srv/bookorbit/libraries/daily-epub"
|
||||
# XTC artifacts. Not listed in OPDS (CrossPoint cannot acquire them); reachable
|
||||
# at /files/xtc/<name> for sideloading.
|
||||
xtc_dir = "/var/lib/daily-epub/xtc"
|
||||
|
||||
[xtc]
|
||||
|
||||
Reference in New Issue
Block a user