diff --git a/Cargo.lock b/Cargo.lock index 55786ac..cec2c8f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -200,15 +200,6 @@ dependencies = [ "rustc-demangle", ] -[[package]] -name = "backup-config" -version = "0.1.3" -source = "git+https://github.com/OMGeeky/backup_config.git#ba18de57f80ca3e59a1da612f7c8a9f3aaa403e1" -dependencies = [ - "confique", - "serde", -] - [[package]] name = "base64" version = "0.21.7" @@ -2986,12 +2977,20 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" +[[package]] +name = "twba-backup-config" +version = "0.1.3" +source = "git+https://github.com/OMGeeky/backup_config.git#88645945830d3076478827503fef43541a2f047e" +dependencies = [ + "confique", + "serde", +] + [[package]] name = "twba-downloader" version = "0.1.0" dependencies = [ "anyhow", - "backup-config", "chrono", "futures", "futures-util", @@ -3003,6 +3002,7 @@ dependencies = [ "tokio", "tracing", "tracing-subscriber", + "twba-backup-config", "twba-local-db", "twba-reqwest-backoff", ] @@ -3010,6 +3010,7 @@ dependencies = [ [[package]] name = "twba-local-db" version = "0.2.1" +source = "git+https://github.com/OMGeeky/twitch_backup.local_db.git#3cbb175182d5f01b150ca07ad184ef99315f45c5" dependencies = [ "futures", "sea-orm", diff --git a/Cargo.toml b/Cargo.toml index e66f5fd..4151dc4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -backup-config = { version = "0.1.1", git = "https://github.com/OMGeeky/backup_config.git" } +twba-backup-config = { version = "0.1.1", git = "https://github.com/OMGeeky/backup_config.git" } twba-local-db = { version = "0.2", git = "https://github.com/OMGeeky/twitch_backup.local_db.git" } twba-reqwest-backoff = { version = "0.1", git = "https://github.com/OMGeeky/twba_reqwest_backoff.git" } diff --git a/src/client.rs b/src/client.rs index 8806a5b..30865f5 100644 --- a/src/client.rs +++ b/src/client.rs @@ -70,13 +70,14 @@ impl DownloaderClient { quality: &str, output_folder: &Path, ) -> Result<()> { + let id = video.id; let video_id = video.twitch_id.clone(); let mut video = video.into_active_model(); video.status = Set(Status::Downloading); video.clone().update(&self.db).await?; let download_result = self .twitch_client - .download_video(video_id, quality, output_folder) + .download_video(id, video_id, quality, output_folder) .await; match download_result { Ok(path) => {