aboutsummaryrefslogtreecommitdiffstats
path: root/src/copyparty
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-28 12:00:03 +0100
committersalmonik <salmonik@tuta.io>2026-10-28 12:00:03 +0100
commit722883ab4a4583b799ce8bfd0cfad70b4b89daf9 (patch)
tree8b19ff073d3981ebc4e3a5428cd953463fa5c46e /src/copyparty
parentcontextual play should add to the last in the queue (diff)
downloadsenator-sperma-722883ab4a4583b799ce8bfd0cfad70b4b89daf9.tar.gz
senator-sperma-722883ab4a4583b799ce8bfd0cfad70b4b89daf9.zip
docker: bake espeak-ng data for Piper TTS
espeak-rs-sys installs espeak-ng-data into the build tree and compiles that path in as the default, so the runtime image failed with 'phontab: No such file or directory'. Copy the data from the builder to /usr/share and point PIPER_ESPEAKNG_DATA_DIRECTORY there; compose overrides the host path from .env. Also trim trailing slashes from Copyparty base URLs, document that env_file changes need --force-recreate, and clean inline comments in .env.example.
Diffstat (limited to 'src/copyparty')
-rw-r--r--src/copyparty/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/copyparty/mod.rs b/src/copyparty/mod.rs
index a9f7d01..d3620b2 100644
--- a/src/copyparty/mod.rs
+++ b/src/copyparty/mod.rs
@@ -147,8 +147,9 @@ pub struct UploadResponse {
147impl CopypartyClient { 147impl CopypartyClient {
148 pub fn new(base_url: String, upload_url: String, password: Option<String>) -> Self { 148 pub fn new(base_url: String, upload_url: String, password: Option<String>) -> Self {
149 Self { 149 Self {
150 base_url, 150 // A trailing slash would produce `//` when a path is appended.
151 upload_url, 151 base_url: base_url.trim_end_matches('/').to_string(),
152 upload_url: upload_url.trim_end_matches('/').to_string(),
152 password, 153 password,
153 client: Client::new(), 154 client: Client::new(),
154 } 155 }