This commit is contained in:
OMGeeky
2023-04-04 22:57:28 +02:00
parent 769404ce78
commit 1e0e6f48ac
2 changed files with 5 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "twitch_data"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@@ -12,7 +12,7 @@ use exponential_backoff::twitch::{
check_backoff_twitch_with_client,
};
use futures::future::join_all;
use log::{debug, info, trace};
use log::{debug, info, trace, warn};
use reqwest;
use serde::{Deserialize, Serialize};
use tokio::fs::File;
@@ -441,7 +441,8 @@ impl<'a> TwitchClient<'a> {
.await?;
info!("downloading all parts of video: {}", url);
let files = self.download_all_parts(&url, &folder_path).await?;
let mut files = self.download_all_parts(&url, &folder_path).await?;
info!("downloaded all parts of video: {}", files.len());
//combine parts
@@ -476,7 +477,7 @@ impl<'a> TwitchClient<'a> {
match number.parse::<u32>() {
Ok(n) => n,
Err(e) => {
println!(
warn!(
"potentially catchable error while parsing the file number: {}\n{}",
number, e
);