tokland / youtube-upload

Upload videos to Youtube from the command line
2.06k stars 464 forks source link

any way to upload a video with a multi-line description #374

Open robertJene opened 6 months ago

robertJene commented 6 months ago

I want to upload videos with multi-line descriptions.

Say, for example, I have the description saved in a text box.

Then I run a script that spits out a command in a batch file.

I want all the lines of the description to upload, not just the first line

Example: youtube-upload ^ --title="intro description test" ^ --description="multi line description" ^ --category="Music" ^ --tags="mutter, beethoven" ^ --default-language="en" ^ --default-audio-language="en" ^ --client-secrets="my_client_secrets.json" ^ --credentials-file="my_credentials.json" ^ --playlist="My favorite music" ^ "look of disapproval INTRO.mp4"

p0i5k commented 4 months ago

Try this:

description=`cat <<_EOF_
line 1
line 2
line 3
_EOF_
`
...
youtube-upload \
--title="intro description test" \
--description="$description" \
...