diff options
author | metamuffin <metamuffin@disroot.org> | 2023-12-12 12:32:29 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-12-12 12:32:29 +0100 |
commit | d103a619c8d94436fbf05c344d2eedb04e5c83f9 (patch) | |
tree | e328512dde04037d9c0941d37f9d18b80ccda4a0 /client/src/lib.rs | |
parent | 47fad855a5495d533e6b46b13a088019d98b29ad (diff) | |
download | jellything-d103a619c8d94436fbf05c344d2eedb04e5c83f9.tar jellything-d103a619c8d94436fbf05c344d2eedb04e5c83f9.tar.bz2 jellything-d103a619c8d94436fbf05c344d2eedb04e5c83f9.tar.zst |
client: parameterize asset width
Diffstat (limited to 'client/src/lib.rs')
-rw-r--r-- | client/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/lib.rs b/client/src/lib.rs index eca27fc..61365a3 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -94,12 +94,13 @@ impl Session { &self, id: &str, role: &str, + width: usize, mut writer: impl tokio::io::AsyncWrite + std::marker::Unpin, ) -> Result<()> { debug!("downloading asset {role:?} for {id:?}"); let mut r = self .client - .get(format!("{}/n/{id}/asset?role={role}", self.instance.base())) + .get(format!("{}/n/{id}/asset?role={role}&width={width}", self.instance.base())) .send() .await?; while let Some(chunk) = r.chunk().await? { |