diff options
Diffstat (limited to 'tools/src/bin')
| -rw-r--r-- | tools/src/bin/import.rs | 23 | 
1 files changed, 2 insertions, 21 deletions
diff --git a/tools/src/bin/import.rs b/tools/src/bin/import.rs index 12cd161..fc44682 100644 --- a/tools/src/bin/import.rs +++ b/tools/src/bin/import.rs @@ -5,7 +5,7 @@ Copyright (C) 2023 metamuffin <metamuffin.org>  */  use anyhow::Context;  use clap::{Parser, Subcommand}; -use jellycommon::{config::GlobalConfig, MediaInfo, Node, NodeKind, NodePrivate, NodePublic}; +use jellycommon::{MediaInfo, Node, NodeKind, NodePrivate, NodePublic};  use jellymatroska::read::EbmlReader;  use jellyremuxer::import::import_read;  use jellytools::tmdb::{tmdb_details, tmdb_image, tmdb_search}; @@ -32,13 +32,6 @@ enum Action {          #[arg(short, long)]          series: bool,      }, -    Remote { -        config: PathBuf, -        host: String, -        #[arg(short, long)] -        remote_id: Option<String>, -        id: String, -    },      Set {          #[arg(short = 'I', long)]          item: PathBuf, @@ -173,6 +166,7 @@ fn main() -> anyhow::Result<()> {              let node = Node {                  private: NodePrivate { +                    import: None,                      backdrop: backdrop.clone(),                      poster: poster.clone(),                      source, @@ -202,19 +196,6 @@ fn main() -> anyhow::Result<()> {              Ok(())          } -        Action::Remote { -            host, -            config, -            remote_id, -            id, -        } => { -            let config: GlobalConfig = -                serde_json::from_reader(File::open(config).unwrap()).unwrap(); - -            let (username, password, tls) = &config.remote_credentials[&id]; - -            Ok(()) -        }          Action::Set { .. } => {              // let mut iteminfo: ItemInfo = match File::open(item.clone()) {              //     Ok(f) => serde_json::from_reader(f)?,  |