From ce2783e19da318b54d3c02e923f1e6880ad9a095 Mon Sep 17 00:00:00 2001 From: OMGeeky Date: Sat, 15 Apr 2023 21:07:13 +0200 Subject: [PATCH] small fix & dependency update --- Cargo.lock | 4 ++-- Cargo.toml | 4 ++-- src/lib.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 491299b..b11ccf1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -384,8 +384,8 @@ dependencies = [ [[package]] name = "downloader_config" -version = "0.4.0" -source = "git+https://github.com/OMGeeky/downloader_config#c3cff264c2bcb3815a8d5652864399a5d436eaad" +version = "0.4.2" +source = "git+https://github.com/OMGeeky/downloader_config#73a397ecff948cb8264e9ebf417f585f98526668" dependencies = [ "log", "serde", diff --git a/Cargo.toml b/Cargo.toml index 8f32a96..ea33b06 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "downloader" -version = "0.2.0" +version = "0.2.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -9,7 +9,7 @@ edition = "2021" google_bigquery_v2 = { version = "0.2", git = "https://github.com/OMGeeky/google_bigquery_v2" } google_youtube = { version = "0.1", git = "https://github.com/OMGeeky/google_youtube" } twitch_data = { version = "0.1", git = "https://github.com/OMGeeky/twitch_data" } -downloader_config = { version = "0.4", git = "https://github.com/OMGeeky/downloader_config" } +downloader_config = { version = "0.4.2", git = "https://github.com/OMGeeky/downloader_config" } tokio = "1.23" chrono = "0.4.23" nameof = "1.2.2" diff --git a/src/lib.rs b/src/lib.rs index 6bb404e..26f9098 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -174,8 +174,8 @@ async fn get_not_downloaded_videos_from_db( ); let user_login = video.user_login.clone().unwrap().to_lowercase(); let streamer = - data::Streamers::get_by_pk(client.clone(), &user_login.clone()).await; - if streamer.is_ok() { + data::Streamers::get_by_pk(client.clone(), &user_login).await; + if streamer.is_err() { // .expect(format!("Streamer with login not found: {}", user_login).as_str()); warn!("Streamer with login not found: {}", user_login); return Ok(None);