wintermute123 / youtube-upload

Automatically exported from code.google.com/p/youtube-upload
0 stars 0 forks source link

Uploading problem #111

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
= Versions

youtube-upload: 0.7.2
python: 2.6
python-gdata: latest as of 2013-05-27 on Debian-

= Describe the steps (including the command you run) that will reproduce
the problem?

I try to run the folling script:

#!/bin/bash

youtube-upload --email=[***]@gmail.com --password=[***] \
  --title="Playing Teleglitch 02: Now with commentary! Take 2" --description="Started over. \nRevolutonary features is MY VOICE!" \
  --category="Games" --keywords="Teleglitch,Indie,Games" "/mnt/downloads/Youtube/Playing Teleglitch 02.wmv"

and I get the following error:
Login to Youtube API: email='[***]@gmail.com', password='*********'
[BadAuthentication] Authentication failed

Email and password ARE correct. I've logged on via elinks-browser with the 
credentials and there's no problem.
I am however using two-step verification, could that be an issue? Any other 
idea? Can I supply a log?

(I have looked through all other issues but solutions haven't helped me)

Original issue reported on code.google.com by lundberg...@gmail.com on 27 May 2013 at 8:11

GoogleCodeExporter commented 8 years ago
> I am however using two-step verification, could that be an issue?

I don't know, I have never used it, but it seems pretty likely that's the 
problem. Can't you disable temporally and test?

Original comment by tokland on 27 May 2013 at 8:16

GoogleCodeExporter commented 8 years ago
Yes, now it works.

When you have two-step verification you have to allow apps to connect. It asks 
you for a code that can be generated from your google account.

Could the script be modified to allow two-step verification? I really don't 
like having my account open.
Just having an error message about two-step verification and then setting the 
key in some config-file would work fine from a user pov.

Original comment by lundberg...@gmail.com on 27 May 2013 at 8:52

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Try the access codes detailed here:

https://developers.google.com/accounts/docs/AuthForInstalledApps

The OAuth alternative is not possible since Youtube API v1.0 does not support 
it (AFAIK).

Original comment by tokland on 28 May 2013 at 11:33

GoogleCodeExporter commented 8 years ago
Creating a program specific password and feeding it to the script (instead of 
regular password) solves the issue. Thanks for that!

Might want to put a note about two-step verification in the Wiki.

Original comment by lundberg...@gmail.com on 28 May 2013 at 12:17

GoogleCodeExporter commented 8 years ago
can you describe the steps you followed so I can update the wiki?

Original comment by tokland on 28 May 2013 at 12:19

GoogleCodeExporter commented 8 years ago
Sorry about late answer.

Go into 2 step verification and issue an application specific password. Take 
the password (16 characters iirc) and use that as a password when uploading.

Now it should work fine.

Original comment by lundberg...@gmail.com on 30 May 2013 at 10:33

GoogleCodeExporter commented 8 years ago
done:

https://code.google.com/p/youtube-upload/wiki/Readme

thanks.

Original comment by tokland on 31 May 2013 at 3:52

GoogleCodeExporter commented 8 years ago

Original comment by tokland on 13 May 2014 at 8:32