Skip to content

Commit

Permalink
fully drop synchronous download system
Browse files Browse the repository at this point in the history
  • Loading branch information
FerrahWolfeh committed Aug 29, 2023
1 parent b305981 commit af0ac86
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 1,244 deletions.
30 changes: 0 additions & 30 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,35 +205,5 @@
],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Test Danbooru async download",
"cargo": {
"args": [
"build",
"--bin=imageboard_downloader",
"--package=imageboard_downloader"
],
"filter": {
"name": "imageboard_downloader",
"kind": "bin"
}
},
"args": [
"--async",
"-e",
"lowres",
"--id",
"--ignore-unknown",
"--no-animated",
"-O",
"/mnt/ram/tst",
"folinic_(arknights)",
"solo",
"--annotate"
],
"cwd": "${workspaceFolder}"
}
]
}
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = ["ibdl-common", "ibdl-core", "ibdl-extractors"]
[package]
name = "imageboard_downloader"
authors = ["Ferrah Aiko Wolf <[email protected]>"]
version = "1.3.2"
version = "1.4.0"
edition = "2021"
description = "Cli utility to bulk download images from popular imageboard sites (Boorus) using their APIs"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion ibdl-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ibdl-core"
version = "1.3.2"
version = "1.4.0"
edition = "2021"
description = "Main download infrastructure for imageboard_downloader"
license = "MIT"
Expand Down
3 changes: 1 addition & 2 deletions ibdl-core/src/async_queue/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ use zip::ZipWriter;

use crate::progress_bars::ProgressCounter;

use crate::queue::error::QueueError;
use crate::queue::summary::{SummaryFile, SummaryType};
use crate::error::QueueError;

static PROGRESS_COUNTERS: OnceCell<ProgressCounter> = OnceCell::new();

Expand Down
205 changes: 0 additions & 205 deletions ibdl-core/src/async_queue/summary.rs

This file was deleted.

21 changes: 0 additions & 21 deletions ibdl-core/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,6 @@ pub struct Cli {
#[clap(short, long, value_parser, help_heading = "DOWNLOAD")]
pub limit: Option<u16>,

/// Enable experimental async downloader (currently only available for Danbooru)
#[clap(
long = "async",
value_parser,
default_value_t = false,
help_heading = "DOWNLOAD"
)]
pub async_download: bool,

/// Disable blacklist filtering
#[clap(long, value_parser, default_value_t = false, help_heading = "GENERAL")]
pub disable_blacklist: bool,
Expand All @@ -117,18 +108,6 @@ pub struct Cli {
)]
pub start_page: Option<u16>,

/// Download only the latest images for tag selection.
///
/// Will not re-download already present or deleted images from destination directory
#[clap(
short,
long,
value_parser,
default_value_t = false,
help_heading = "SAVE"
)]
pub update: bool,

/// Download posts with the selected rating. Can be used multiple times to download posts with other ratings
#[clap(
short,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion ibdl-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use std::path::{Path, PathBuf};

pub mod async_queue;
pub mod cli;
pub mod error;
pub mod progress_bars;
pub mod queue;

#[derive(Debug, Clone, Copy)]
#[repr(transparent)]
Expand Down
Loading

0 comments on commit af0ac86

Please sign in to comment.