diff options
Diffstat (limited to 'src/commands/download.rs')
-rw-r--r-- | src/commands/download.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/commands/download.rs b/src/commands/download.rs index 82d6b02..13ba0e1 100644 --- a/src/commands/download.rs +++ b/src/commands/download.rs | |||
@@ -1,15 +1,19 @@ | |||
1 | #[allow(unused_imports)] | ||
1 | use crate::{List, get_current_list, config::Cfg, db::userlist_get_all_downloads, input::Input}; | 2 | use crate::{List, get_current_list, config::Cfg, db::userlist_get_all_downloads, input::Input}; |
2 | 3 | ||
3 | pub async fn download(config: Cfg, input: Input) -> Result<(), Box<dyn std::error::Error>> { | 4 | pub async fn download(_config: Cfg, _input: Input) -> Result<(), Box<dyn std::error::Error>> { |
5 | println!("NO IMPLEMENTATION FOR DOWNLOAD YET"); | ||
6 | /* | ||
4 | let list = get_current_list(config.clone())?; | 7 | let list = get_current_list(config.clone())?; |
5 | 8 | ||
6 | let links = userlist_get_all_downloads(config.clone(), list.clone().id)?; | 9 | let links = userlist_get_all_downloads(config.clone(), list.clone().id)?; |
7 | 10 | ||
8 | download_links(config, input, list, links).await?; | 11 | download_links(config, input, list, links).await?; |
9 | 12 | */ | |
10 | Ok(()) | 13 | Ok(()) |
11 | } | 14 | } |
12 | 15 | ||
16 | #[allow(dead_code)] | ||
13 | async fn download_links(_config: Cfg, _input: Input, _current_list: List, _links: Vec<String>) -> Result<String, Box<dyn std::error::Error>> { | 17 | async fn download_links(_config: Cfg, _input: Input, _current_list: List, _links: Vec<String>) -> Result<String, Box<dyn std::error::Error>> { |
14 | println!("NO DL IMPLEMENTATION FOR DOWNLOAD YET"); | 18 | println!("NO DL IMPLEMENTATION FOR DOWNLOAD YET"); |
15 | //TODO copy dl from update if possible | 19 | //TODO copy dl from update if possible |