KipgenNeo / youtube-upload

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

description from file #162

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
= Versions

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

= Describe the steps (including the command you run) that will reproduce
the problem?
D:\Python27\python .\youtube-upload-0.7.3\youtube_upload\youtube_upload.py 
--email=myEmail --password=myPassword --title="title" --description="$(< 
\description.txt)" --category=Games --keywords="Super Smash Bros. Melee (Video 
Game)" "test.mp4"

Traceback (most recent call last):
  File ".\youtube-upload-0.7.3\youtube_upload\youtube_upload.py", line 519, in <
module>
    sys.exit(catch_exceptions(EXIT_CODES, main, sys.argv[1:]))
  File ".\youtube-upload-0.7.3\youtube_upload\youtube_upload.py", line 111, in c
atch_exceptions
    fun(*args, **kwargs)
  File ".\youtube-upload-0.7.3\youtube_upload\youtube_upload.py", line 516, in m
ain
    run_main(parser, options, args)
  File ".\youtube-upload-0.7.3\youtube_upload\youtube_upload.py", line 449, in r
un_main
    url = upload_video(youtube, options, video_path, len(args), index)
  File ".\youtube-upload-0.7.3\youtube_upload\youtube_upload.py", line 360, in u
pload_video
    entry = youtube.upload_video(*args, **kwargs)
  File ".\youtube-upload-0.7.3\youtube_upload\youtube_upload.py", line 203, in u
pload_video
    return self.service.InsertVideoEntry(video_entry, path)
  File "D:\Python27\lib\site-packages\gdata\youtube\service.py", line 661, in In
sertVideoEntry
    raise YouTubeError(e.args[0])
gdata.youtube.service.YouTubeError: {'status': 400, 'body': "<?xml version='1.0'
 encoding='UTF-8'?><errors><error><domain>yt:validation</domain><code>invalid_ch
aracter</code><location type='xpath'>media:group/media:description/text()</locat
ion></error></errors>", 'reason': 'Bad Request'}

I with this same command but only a normal string instead of $(< 
\description.txt) It up loads fine but I want a description from a file.  I use 
windows, is this the problem? Also are new lines allowed in the description 
file?

Original issue reported on code.google.com by mordicon...@gmail.com on 7 Jan 2015 at 12:44

GoogleCodeExporter commented 9 years ago
$(< file) is allowed in Windows? are you using cygwin? zero experience with 
Windows, sorry.

Original comment by tokland on 7 Jan 2015 at 11:11

GoogleCodeExporter commented 9 years ago
Project closed. New project here:

https://github.com/tokland/youtube-upload

Original comment by tokland on 1 Feb 2015 at 2:16