diff options
author | FxQnLr <[email protected]> | 2022-11-25 15:52:20 +0100 |
---|---|---|
committer | FxQnLr <[email protected]> | 2022-11-25 15:52:20 +0100 |
commit | d8cb7bc5f9c2e01c82f954427a60da6eaf0610ca (patch) | |
tree | dcb68d55e52f71dbac6d9c10c9a09a8b0cab9c85 /src/commands/download.rs | |
parent | c00673fd0e01d1438798dbb1635a761a76a2b559 (diff) | |
download | modlist-d8cb7bc5f9c2e01c82f954427a60da6eaf0610ca.tar modlist-d8cb7bc5f9c2e01c82f954427a60da6eaf0610ca.tar.gz modlist-d8cb7bc5f9c2e01c82f954427a60da6eaf0610ca.zip |
added direct download
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 |