sudout / youtube-upload

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

Does youtube-upload accept unicode data in keywords #134

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
= Versions

youtube-upload:0.7.3
python:2.7
python-gdata:

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

I have included some unicode strings in the description field and run 
youtube-upload as below:

/opt/local/bin/youtube-upload  -t "Ajanta Streelinga Prakaranam, 
अजन्तस्त्री&#x
932;िङ्गप्रकरण&#x92e
;्, Class #1" --category "Education" --keywords="Sanskrit,Siddhanta 
Kaumudi,Sanskrit,Vyakaranam,Sanskrit Grammar" --description "Siddhanta Kaumudi 
Ch9, Ajanta Streelinga Prakaranam 
सिद्धान्तकौ&#x
92e;ुद्याम् 
अजन्तस्त्री&#x
932;िङ्गप्रकरण&#x92e
;्, recorded on 2011-05-16. Files: 
http://ggss-lessons.org/data/2011/05/16/ggss_sk_001_asp_2011-05-16.pdf" 
--email=XXX@gmail.com  --password=XXX 
/Users/parimi/ggss/ch9/ggss_sk_001_asp_2011-05-16.wmv

The error I see is 

Login to Youtube API: email=\'XXX@gmail.com\', 
password=\'**************\'\nTraceback (most recent call last):\n  File 
"/opt/local/bin/youtube-upload", line 519, in <module>\n    
sys.exit(catch_exceptions(EXIT_CODES, main, sys.argv[1:]))\n  File 
"/opt/local/bin/youtube-upload", line 111, in catch_exceptions\n    fun(*args, 
**kwargs)\n  File "/opt/local/bin/youtube-upload", line 516, in main\n    
run_main(parser, options, args)\n  File "/opt/local/bin/youtube-upload", line 
449, in run_main\n    url = upload_video(youtube, options, video_path, 
len(args), index)\n  File "/opt/local/bin/youtube-upload", line 363, in 
upload_video\n    data = youtube.get_upload_form_data(*args, **kwargs)\n  File 
"/opt/local/bin/youtube-upload", line 197, in get_upload_form_data\n    
post_url, token = self.service.GetFormUploadToken(entry)\n  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-
packages/gdata/youtube/service.py", line 721, in GetFormUploadToken\n    raise 
YouTubeError(e.args[0])\ngdata.youtube.service.YouTubeError: {\'status\': 400, 
\'body\': "<?xml version=\'1.0\' 
encoding=\'UTF-8\'?><errors><error><domain>yt:validation</domain><code>too_long<
/code><location 
type=\'xpath\'>media:group/media:title/text()</location></error></errors>", 
\'reason\': \'Validation Failed\'}'

Can you please let me know which part of the command needs to be fixed?

thanks

Original issue reported on code.google.com by rpar...@gmail.com on 21 Jan 2014 at 6:46

GoogleCodeExporter commented 8 years ago
It's on the error your pasted: "too_long</code><location 
type=\'xpath\'>media:group/media:title/text()"

The title is too long.

Original comment by tokland on 21 Jan 2014 at 8:58

GoogleCodeExporter commented 8 years ago

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