pass playlist privacy on creation

This commit is contained in:
OMGeeky
2023-06-21 18:03:29 +02:00
parent a6f008281e
commit e0c022b9b8
2 changed files with 2 additions and 2 deletions

View File

@@ -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"

View File

@@ -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