diff options
author | metamuffin <metamuffin@disroot.org> | 2023-12-22 23:57:03 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-12-22 23:57:03 +0100 |
commit | 75949cebdd61dd8f0d06f2e47081c460e2a442f0 (patch) | |
tree | ea0fc2ff003b7694ee06555d731bce1f08199136 /tool/src | |
parent | c4682c231cbfa2bd4b44e14548800a64cc9cdbb8 (diff) | |
download | jellything-75949cebdd61dd8f0d06f2e47081c460e2a442f0.tar jellything-75949cebdd61dd8f0d06f2e47081c460e2a442f0.tar.bz2 jellything-75949cebdd61dd8f0d06f2e47081c460e2a442f0.tar.zst |
rework import system pt. 8: federated streams & change jhls
Diffstat (limited to 'tool/src')
-rw-r--r-- | tool/src/main.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tool/src/main.rs b/tool/src/main.rs index 7b58125..6dc7f8a 100644 --- a/tool/src/main.rs +++ b/tool/src/main.rs @@ -10,8 +10,10 @@ pub mod migrate; use anyhow::anyhow; use base64::Engine; use clap::{Parser, Subcommand, ValueEnum}; -use jellyclient::{Instance, LoginDetails}; -use jellycommon::{config::GlobalConfig, Node, NodeKind, NodePrivate, NodePublic}; +use jellyclient::Instance; +use jellycommon::{ + config::GlobalConfig, user::CreateSessionParams, Node, NodeKind, NodePrivate, NodePublic, +}; use log::{info, warn}; use migrate::migrate; use rand::random; @@ -142,7 +144,7 @@ fn main() -> anyhow::Result<()> { let inst = Instance::new(hostname.unwrap_or(config.hostname.clone()), !no_tls); info!("login"); let session = inst - .login(LoginDetails { + .login(CreateSessionParams { drop_permissions: None, expire: None, password: config.admin_password, |