Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

How to uncheck "publish to subscriptions and notify subscribers" using simple-youtube-api in python?

$
0
0

I'm using python and simple-youtube-api, to upload a video to youtube, the code is below

The code I'm using works fine but i can't seem to figure out one functionality, I wanna be able to turn off the checkbox "Publish to subscriptions feed and notify subscribers". Can some one help me do this?Here is the image of the checkbox

def upload_yt(video_path: str, thumbnail_path: str, title: str, description: str, privacy: str = "public", channel_name: str = "Heilo") -> None:    print(colored("⌛  | Beginning YouTube upload", "yellow"))    channel = Channel()    channel.login(f"./channels/{channel}/client_secrets.json", f"./channels/{channel_name}/credentials.storage")    video = LocalVideo(file_path=video_path)    video.set_title(title)    video.set_description(description)    video.set_tags([title])    video.set_default_language("en-US")    video.set_embeddable(True)    video.set_privacy_status(privacy)    video.set_public_stats_viewable(True)    if thumbnail_path != "Nil":        video.set_thumbnail_path(thumbnail_path)    video = channel.upload_video(video)    print(colored("✅  | Uploaded to YouTube", "light_green"))

There is my code for anyone to help me, thanks in advanced

I want to be able to uncheck the checkbox, while uploading the video, this is because once its checked, it can't be unchecked later, is there a way to do this using this library?

There are NO errors, the code is fine, my issue is simple, I just want to find a way to uncheck the box while uploading


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>