diff options
author | metamuffin <metamuffin@disroot.org> | 2023-08-02 15:08:43 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-08-02 15:08:43 +0200 |
commit | c81d8bbfd46d53fba6e0086b5f859f8af8639f4a (patch) | |
tree | 8088fcfad28e9fae3a0a70853b5fd12204cde35a /tools/src/bin | |
parent | 0d6a5fb84d3e0016c80baa1849612f550db31a81 (diff) | |
download | jellything-c81d8bbfd46d53fba6e0086b5f859f8af8639f4a.tar jellything-c81d8bbfd46d53fba6e0086b5f859f8af8639f4a.tar.bz2 jellything-c81d8bbfd46d53fba6e0086b5f859f8af8639f4a.tar.zst |
refactor admin panel
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)?, |