m1gin 344

Notes on youtube-upload

sudo pip install --upgrade google-api-python-client oauth2client progressbar2 --break-system-packages


--credentials-file doesn't have to be exists at the beginning. After the first authentication, it will be created automatically.

python3 "/home/mb/app/youtube-upload-master/bin/youtube-upload" --title="test title" --client-secrets=/home/mb/app/youtube-upload-master/mb/keys/client_secret_mb.json --credentials-file=/home/mb/app/youtube-upload-master/mb/keys/credentials_mb_o3ep.json test.mp4


python3 "/home/mb/app/youtube-upload-master/bin/youtube-upload" --title="test title" --description="test info" --category=Education --tags="tag, keyword" --default-language="tr" --default-audio-language="tr" --client-secrets=/home/mb/app/youtube-upload-master/mb/keys/client_secret_mb.json --credentials-file=/home/mb/app/youtube-upload-master/mb/keys/credentials_mb_o3ep.json --privacy="public" --playlist="playlist title" test.mp4


ERROR HANDLING

ERROR:

httplib2.error.RedirectMissingLocation: Redirected but the response is missing a Location: header.

SOLUTION:

Install httplib2==0.15.0 for the user only

pip install httplib2==0.15.0 --break-system-packages

Add to: