mirror of
https://github.com/OMGeeky/twba.uploader.git
synced 2025-12-26 16:37:23 +01:00
logging & some deps stuff
This commit is contained in:
@@ -4,8 +4,8 @@ git-fetch-with-cli = true
|
||||
#[patch."https://github.com/OMGeeky/backup_config.git"]
|
||||
#backup-config = { path = "../backup_config" }
|
||||
#
|
||||
[patch."https://github.com/OMGeeky/twitch_backup.local_db.git"]
|
||||
twba-local-db = { path = "../twitch_backup.local_db" }
|
||||
#[patch."https://github.com/OMGeeky/twitch_backup.local_db.git"]
|
||||
#twba-local-db = { path = "../twitch_backup.local_db" }
|
||||
#
|
||||
#[patch."https://github.com/OMGeeky/twba_reqwest_backoff.git"]
|
||||
#reqwest-backoff = { path = "../reqwest_backoff" }
|
||||
|
||||
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -3323,6 +3323,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",
|
||||
|
||||
@@ -100,6 +100,7 @@ impl UploaderClient {
|
||||
.await;
|
||||
match upload {
|
||||
Ok(uploaded_video_id) => {
|
||||
info!("uploaded part: {}", part.display());
|
||||
dbg!(&uploaded_video_id);
|
||||
client_for_video
|
||||
.add_video_to_playlist(uploaded_video_id.clone(), playlist_id.clone())
|
||||
@@ -118,6 +119,7 @@ impl UploaderClient {
|
||||
.await?;
|
||||
}
|
||||
|
||||
info!("all parts uploaded for video: {}", video_id);
|
||||
self.set_video_status_on_db(video, Status::Uploaded).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ pub enum UploaderError {
|
||||
#[error("Could not load config")]
|
||||
LoadConfig(#[source] anyhow::Error),
|
||||
|
||||
#[error("Some error with the database")]
|
||||
#[error("Some error with the database: {0:?}")]
|
||||
OpenDatabase(#[from] twba_local_db::re_exports::sea_orm::DbErr),
|
||||
|
||||
#[error("Error with some Youtube operation: {0} ")]
|
||||
|
||||
Reference in New Issue
Block a user