From e0c022b9b83611651a4c08ebec74fd6d8dc06dc1 Mon Sep 17 00:00:00 2001 From: OMGeeky Date: Wed, 21 Jun 2023 18:03:29 +0200 Subject: [PATCH] pass playlist privacy on creation --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3ccbd0a..926c132 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" [dependencies] 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" } +google_youtube = { version = "0.2", git = "https://github.com/OMGeeky/google_youtube" } twitch_data = { version = "0.2", git = "https://github.com/OMGeeky/twitch_data" } downloader_config = { version = "0.4", git = "https://github.com/OMGeeky/downloader_config" } tokio = "1.23" diff --git a/src/lib.rs b/src/lib.rs index 09fc96d..673b5f4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -411,7 +411,7 @@ async fn upload_video_to_youtube<'a>( let playlist_title = get_playlist_title_from_twitch_video(&video)?; let playlist = youtube_client - .find_playlist_or_create_by_name(&playlist_title) + .find_playlist_or_create_by_name(&playlist_title, privacy) .await .map_err(|e| anyhow!("{}", e))?; youtube_client