youtube-upload
youtube-upload copied to clipboard
--description doesn't recognise \n for new line.\
Hi
I use the following command to upload a description
sudo youtube-upload --description="\n abc"
However, after the upload it doesn't recognise the new line character on youtube.
it gives me the following
could you please let me know what character should i give to have a new line in the youtube video description?
Carriage Return (\r
) seems to work for me.
Edit: nvm, the automatic word wrap fooled me. however, using --description-file
instead of -d
works.
This works for me when calling the command line script from Python 3:
subprocess.run(
args=[
'youtube-upload',
f'--title=test',
f'--description=asdf\nfoo\nbar',
#...
video_path,
],
check=True
)
So if your newlines are getting messed up, it might be your shell that's doing it.
For anyone else coming to this now, this kinda work around works if you're using bash and want to avoid writing it to disk. https://github.com/tokland/youtube-upload/issues/272#issuecomment-489057232