small fix & dependency update

This commit is contained in:
OMGeeky
2023-04-15 21:07:13 +02:00
parent 455aed76f0
commit ce2783e19d
3 changed files with 6 additions and 6 deletions

4
Cargo.lock generated
View File

@@ -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",

View File

@@ -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"

View File

@@ -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);