refactor: move print statement to main

This commit is contained in:
LinlyBoi
2025-07-10 13:04:22 +03:00
parent 8bc17a3af3
commit 37decc423e
2 changed files with 4 additions and 3 deletions

View File

@@ -160,9 +160,6 @@ pub fn expand_tilde(path: &str) -> String {
} }
pub fn print_schedule(video_files: &Vec<String>, schedule: &Vec<DateTime<Utc>>) { pub fn print_schedule(video_files: &Vec<String>, schedule: &Vec<DateTime<Utc>>) {
// Display schedule
println!("Upload Schedule:");
println!("================");
for (i, (video_file, scheduled_time)) in video_files.iter().zip(schedule.iter()).enumerate() { for (i, (video_file, scheduled_time)) in video_files.iter().zip(schedule.iter()).enumerate() {
println!( println!(
"{}. {} -> {}", "{}. {} -> {}",

View File

@@ -54,6 +54,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
metadata[i].privacy_status = "private".to_string(); // Set to private for scheduling metadata[i].privacy_status = "private".to_string(); // Set to private for scheduling
} }
} }
//Display schedule
println!("Upload Schedule:");
println!("================");
print_schedule(&video_files, &schedule); print_schedule(&video_files, &schedule);
if dry_run { if dry_run {