I'm writing some code that direct uploads videos via the YouTube API without the benefit of the usual programming language wrappers. This has been working quite well until I added the ability to specify GPS co-ordinates at the time of upload.
Error:
Now I get the following error when I POST using this metadata to http://uploads.gdata.youtube.com/feeds/api/users/default/uploads
Error:
<?xml version='1.0' encoding='UTF-8'?><errors><error><domain>yt:validation</domain><code>too_long</code><location type='xpath'>media:group/media:keywords/text()</location></error></errors>
Metadata:
<?xml version="1.0"?>
<entry xmlns:gml="http://www.opengis.net/gml" xmlns:yt="http://gdata.youtube.com/schemas/2007" xmlns:media="http://search.yahoo.com/mrss/" xmlns:georss="http://www.georss.org/georss" xmlns="http://www.w3.org/2005/Atom">
<media:group>
<media:title type="plain">Test title that is very long indeedy deedy do... ahem, is this thing still on?</media:title>
<media:description type="plain">Test caption that is very long indeedy deedy do... ahem, is this thing still on?</media:description>
<media:category scheme="http://gdata.youtube.com/schemas/2007/categories.cat">People</media:category>
<media:license href="http://www.youtube.com/t/terms" type="text/html">youtube</media:license>
<media:keywords>testkeyword1,testkeyword10,testkeyword2,testkeyword3,testkeyword4,testkeyword5,testkeyword6,testkeyword7,testkeyword8,testkeyword9</media:keywords>
</media:group>
<yt:accessControl action="comment" permission="allowed"/>
<yt:accessControl action="commentVote" permission="allowed"/>
<yt:accessControl action="videoRespond" permission="allowed"/>
<yt:accessControl action="rate" permission="allowed"/>
<yt:accessControl action="list" permission="allowed"/>
<yt:accessControl action="embed" permission="allowed"/>
<yt:accessControl action="syndicate" permission="allowed"/>
<georss:where>
<gml:Point>
<gml:pos>80.653569444445 94.921875</gml:pos>
</gml:Point>
</georss:where>
</entry>
If I understand the error message correctly it is saying the media:keywords value is long. This doesn't seem to be correct because removing the complete georss:where element will allow this same metadata to be accepted, even though the media:keywords value is unchanged. Reading through the definitions of the various elements (inc entry and georss:where) indicate I'm not missing any mandatory elements and they are included in the correct order so I'm not sure what to try next.
Does anyone have suggestions regarding what could be causing this issue and how to avoid it?
Thanks,
Matt
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/cGIqOwOe5pgJ.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment