Youtube Poster Data
'protected' means unlisted
- yt_thumbnail
- youtube_data
YoutubePosterData is the richest settings form in the MLTask/SocialMan suite, because YouTube is the platform with the most metadata to fill in: title, description, tags, privacy, category, thumbnail. Like every other PosterData node, it only builds a data dictionary - SocialManPoster is the node that actually uploads and publishes through MLTask's backend.
The required input is target_channel, a dropdown of your connected YouTube channels from socialman.json. Same ritual as the Facebook and Instagram siblings: no token yet, and the dropdown sits on "Refresh or set the token." Set a token in SocialManPoster (get one at mltask.com/user/comfyui), and your channel names appear. The node resolves the channel name to its ID before posting.
Then the good stuff:
- title and description - obvious, both multiline, and they get sent verbatim.
- tags - a comma-separated string like
tag1, tag2. The node does not parse or clean this; the backend gets the raw string, so use the comma form YouTube expects. - privacy - three choices:
public,private, andprotected. Here's the quirk: "protected" is YouTube API-speak for unlisted. If you're testing, that's the option you want - link-only visibility without cluttering your channel. Public is self-explanatory; private hides it entirely. - category - 15 choices mirroring YouTube's official categories, defaulting to "Entertainment" (the "Gaming" default the tutorials show isn't one). Film & Animation, Music, Howto & Style, Science & Technology, and so on.
- yt_thumbnail (IMAGE) - a custom video thumbnail, saved to your output folder and uploaded as the video cover.
Its single output, youtube_data, wires into SocialManPoster's youtube_data input. The two things that will bite you:
- YouTube is video-only here. In the poster node's code, if the media is an image, the YouTube data is emptied entirely - the YouTube API path in SocialMan doesn't support community-style image posts. Feed this a video (
VHS_VideoCombine→SocialManMediaToPoster), or the YouTube tab quietly does nothing. - The thumbnail only applies to video too - same rule as every other network in this pack. Generate covers for videos, skip them for images.
Mechanically, everything interesting happens on MLTask's servers. This node just bundles channel ID, title, description, tags, privacy, category, and the thumbnail path. The poster node sends it to comfy.api.mltask.com/v1/create-post, uploads your video and thumbnail to pre-signed URLs, then finalizes the post - which is also where "you're not subscribed" and token errors surface, as dialogs.
Installing it
It's part of the MLTask_ComfyUI pack. Install once via ComfyUI Manager (search MLTask_ComfyUI) and restart, or:
cd ComfyUI/custom_nodes
git clone https://github.com/misterjoessef/MLTask_ComfyUI
Dependencies are just requests and aiohttp. The real prerequisites - a SocialMan token, a connected YouTube channel, and a subscription for actual publishing - aren't in any requirements file. When you're first testing, set privacy to protected (unlisted) so you can iterate without making every test public.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| target_channel | COMBO | Refresh or set the token | 0 options: |
| titleopt | STRING | youtube title | — |
| descriptionopt | STRING | youtube description | — |
| tagsopt | STRING | tag1, tag2 | — |
| privacyopt | COMBO | public | 3 options: public, private, protected |
| categoryopt | COMBO | Entertainment | 15 options: Film & Animation, Autos & Vehicles, Music, Pets & Animals, Sports, Travel & Events, +9 |
| yt_thumbnailopt | IMAGE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| youtube_data | MLT_SM_YOUTUBE_DATA | — |