youtube-upload icon indicating copy to clipboard operation
youtube-upload copied to clipboard

--description doesn't recognise \n for new line.\

Open ZelunZhang opened this issue 6 years ago • 3 comments

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 image could you please let me know what character should i give to have a new line in the youtube video description?

ZelunZhang avatar Jul 09 '18 21:07 ZelunZhang

Carriage Return (\r) seems to work for me.

Edit: nvm, the automatic word wrap fooled me. however, using --description-file instead of -d works.

MCOfficer avatar Jul 26 '18 15:07 MCOfficer

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.

rudolfbyker avatar Jul 17 '21 09:07 rudolfbyker

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

adriel avatar Feb 16 '22 23:02 adriel