mirror of
https://github.com/OMGeeky/downloader.git
synced 2026-02-23 15:38:31 +01:00
logs & dependency update
This commit is contained in:
10
Cargo.lock
generated
10
Cargo.lock
generated
@@ -384,10 +384,12 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "downloader_config"
|
||||
version = "0.3.0"
|
||||
source = "git+https://github.com/OMGeeky/downloader_config#a484c2ece44554f47d72a3e8541abc0dda9c78bb"
|
||||
version = "0.4.0"
|
||||
source = "git+https://github.com/OMGeeky/downloader_config#c3cff264c2bcb3815a8d5652864399a5d436eaad"
|
||||
dependencies = [
|
||||
"log",
|
||||
"serde",
|
||||
"serde_json",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -2071,8 +2073,8 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "twitch_data"
|
||||
version = "0.1.7"
|
||||
source = "git+https://github.com/OMGeeky/twitch_data#b28cb4670ebf08fc2952682da2b1807efa4e939c"
|
||||
version = "0.1.8"
|
||||
source = "git+https://github.com/OMGeeky/twitch_data#61762208ad676a2990a2f4957fc5cd35b9da3866"
|
||||
dependencies = [
|
||||
"async-recursion",
|
||||
"chrono",
|
||||
|
||||
14
Cargo.toml
14
Cargo.toml
@@ -6,18 +6,18 @@ edition = "2021"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
google_bigquery_v2 = { version="0.2.1", git = "https://github.com/OMGeeky/google_bigquery_v2" }
|
||||
google_youtube = { version="0.1.1",git = "https://github.com/OMGeeky/google_youtube" }
|
||||
twitch_data = { version="0.1.7", git = "https://github.com/OMGeeky/twitch_data" }
|
||||
downloader_config = { version="0.3.0", git = "https://github.com/OMGeeky/downloader_config" }
|
||||
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" }
|
||||
tokio = "1.23"
|
||||
chrono = "0.4.23"
|
||||
nameof = "1.2.2"
|
||||
log = "0.4.17"
|
||||
simplelog = "0.12.1"
|
||||
log4rs = { version = "1.2.0" , features = ["compound_policy", "default", "size_trigger", "all_components", "gzip"] }
|
||||
log4rs = { version = "1.2.0", features = ["compound_policy", "default", "size_trigger", "all_components", "gzip"] }
|
||||
path-clean = "1.0.1"
|
||||
|
||||
log-panics = { version = "2", features = ["with-backtrace"]}
|
||||
log-panics = { version = "2", features = ["with-backtrace"] }
|
||||
env_logger = "0.10.0"
|
||||
anyhow = "1.0.70"
|
||||
anyhow = "1.0.70"
|
||||
|
||||
@@ -263,7 +263,7 @@ async fn backup_video<'a>(
|
||||
)
|
||||
.await?;
|
||||
video_parts.sort();
|
||||
|
||||
trace!("Creating youtube client");
|
||||
let youtube_client = YoutubeClient::new(
|
||||
Some(config.youtube_client_secret_path.as_str()),
|
||||
vec![
|
||||
@@ -283,6 +283,9 @@ async fn backup_video<'a>(
|
||||
.await
|
||||
.map_err(|e| anyhow!("{}", e))?;
|
||||
info!("Uploading video to youtube");
|
||||
debug!("Video parts: {:?}", video_parts);
|
||||
debug!("Video: {:?}", video);
|
||||
debug!("Config: {:?}", config);
|
||||
let res = upload_video_to_youtube(&video_parts, video, &youtube_client, config).await;
|
||||
if let Err(e) = res {
|
||||
info!("Error uploading video: {}", e);
|
||||
|
||||
Reference in New Issue
Block a user