porjo/youtubeuploader

How do you set a video to "public"?

Closed this issue · 4 comments

Thank you for your great work on this.

I've tried setting the video to public via -privacy public and with a json file. However, each time it is published as private. Is there a default setting on my YouTube account I need to set or something I'm missing? Thanks.

porjo commented

See #86

@porjo Apologies. I omitted some detail. I've completed the audit. My app is authorized to publish and Google increased my daily upload limit. I can successfully publish my videos to my YouTube channel using youtubeuploader.

Everything works with the exception that my video stays in the state of Visibility = private. (not Private/Blocked).

After the upload completes, I'm able to change the visibility from Private to Public manually through the web UI, but I haven't been able to do it with youtubeuploader.

Should I be making a second call to change the visibility after the upload completes?

Thanks in advance.

The picture shows what the video looks like after publishing via YouTubeuploader.

Here's my json for this same video. (indents are correct in the actual json)
{
"madeForKids": false,
"embeddable": true,
"license": "creativeCommon",
"publicStatsViewable": true,
"recordingdate": "2023-02-12",
"title": "02/12/2023: Lake Travis, Texas (Austin, TX): 4K, 60fps Daily Weather & Boat Traffic Timelapse Video",
"tags": ["laketravis", "austin", "weather", "wx", "timelapse"],
"privacy": "public",
"description": "4K, 60fps Daily Weather & Boat Traffic Timelapse Video taken near Lakeway, Texas (Austin, Texas)",
"categoryId": "28",
"playlistIds": ["PLFN-n1UuTGMFbSg3XSun34o3expxXXXXX"],
"playlistTitles": ["Lake Travis Daily 4K Timelapse"]
}

example

porjo commented

Try replacing "privacy": "public" with "privacyStatus": "public" in your JSON file.

Changing to my json to "privacyStatus": "public" did the trick. Thank you.