ZF-12416: Zend_Gdata_YouTube_VideoEntry::getVideoTags() broken

Issue Type: Bug Created: 2012-09-11T17:26:13.000+0000 Last Updated: 2013-04-05T16:07:17.000+0000 Status: Closed Fix version(s): Reporter: Scotepi (scotepi) Assignee: Trevor Johns (tjohns) Tags: - Zend_Gdata

  • youtube

Related issues: Attachments:


getVideoTags() always returns a blank array because Zend_Gdata_Media_Extension_MediaKeywords doesn't have the tag data.

The tags are in Zend_Gdata_App_Extension_Category along with the category and other information. The only way to tell tags from category's apart is by using the scheme.

Some who is a bit better with Zend could come up with a more elegant solution but this is the basic code I used to get the tags:

<pre class="highlight">
$tags = array();
foreach ($video->getCategory() as $category) {
    if ($category->getScheme() == '<a href=""></a>') {
        $tags[] = $category->getTerm();

I am using the latest SVN version 25051 at the time of posting.


Posted by Scotepi (scotepi) on 2013-01-10T19:05:24.000+0000

This is a intended change to the YouTube API

Posted by Scotepi (scotepi) on 2013-01-10T19:06:09.000+0000

This is a intended change to the YouTube API…

Posted by Ralph Schindler (ralph) on 2013-04-05T16:07:17.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit:

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.