sudout / youtube-upload

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

Latin chars not works in the creation also works in update #141

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
= Versions

youtube-upload:youtube-upload-0.7.3.tgz
python:2.7 32bits
python-gdata:gdata-2.0.18

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

if I execute this command to import video:

os.system('c:/python27/python.exe C:/ndfd/youtube/youtube-upload \
    --email=eltiempo24h-4669@pages.plusgoogle.com --password=@iDt_2359 \
    --title="'+ unicode(titulo).decode("latin-1").encode("utf-8")+'" --description="'+ unicode(descripcion).decode("latin-1").encode("utf-8")+'" \
    --category=News --keywords="'+ unicode(val).decode("latin-1").encode("utf-8")+'" ' +ruta)

The title see bad in youtube:

----->     Mapa previsiónintensidad de lluvia

after this I execute :

    os.system('c:/python27/python.exe youtube-upload --email=eltiempo24h-4669@pages.plusgoogle.com --password=@iDt_2359 --update-metadata --title "'+unicode(titulo).decode('latin-1').encode("utf-8")+'" www.youtube.com/watch?v=ZqDo_HVfyJM')

to correct the video title:

and the title fix. In the same py, in with the same values.

If you dont mind fix this. are any command to retrive the name ? like  
"ZqDo_HVfyJM" ,  when you finish the import, to execute the update command 
after import.

Thank you

Original issue reported on code.google.com by virtuals...@gmail.com on 6 May 2014 at 2:05

GoogleCodeExporter commented 8 years ago
The script assume utf8, yes, I am sorry.

> If you dont mind fix this. are any command to retrive the name ? like  
"ZqDo_HVfyJM" ,  when you finish the import, to execute the update command 
after import.

The script outputs the video URL, so you can assign it to a variable and use it 
later.

Original comment by tokland on 6 May 2014 at 8:37

GoogleCodeExporter commented 8 years ago

Original comment by tokland on 6 May 2014 at 8:37

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
please clean password and login. I forgotten.

Original comment by virtuals...@gmail.com on 6 May 2014 at 8:45

GoogleCodeExporter commented 8 years ago
Sorry, google.code does not allow to delete or edit an issue. you'll have to 
change it.

Original comment by tokland on 6 May 2014 at 8:58