ZF-12461: Zend_Gdata_YouTube_PlaylistVideoEntry::getVideoId() gives wrong id

Issue Type: Bug Created: 2012-11-06T18:40:21.000+0000 Last Updated: 2013-04-05T16:07:10.000+0000 Status: Closed Fix version(s): Reporter: Scotepi (scotepi) Assignee: Trevor Johns (tjohns) Tags: - Zend_Gdata

  • youtube

Related issues: Attachments:


When using playlists to list videos using Zend_Gdata_YouTube_PlaylistVideoEntry the getVideoId() returns the playlist video id instead of the actual video id.

<pre class="highlight">
$playlist = $yt->getPlaylistVideoFeed('<a href="">…</a>');
foreach ($playlist as $i=>$video) {
    echo $video->getVideoId() . ' ' . $video->getVideoTitle() ."\n";

This looks like an upstream issue with Zend_Gdata_YouTube_VideoEntry::getVideoId()


Posted by Rob Allen (rob) on 2012-11-06T19:47:21.000+0000

Are you in a position to sign the CLA and supply a patch?

Posted by Scotepi (scotepi) on 2012-11-06T23:58:53.000+0000

I don't know enough about the internal workings of zend to feel confident in submitting a patch. My workaround right now is to parse getVideoThumbnails() for the video id.

Using the verry buggy YouTube Data API Demo you can put the request URI as /feeds/api/playlists/PLB64B76A0570E8A46 and see the video id's are at .

Posted by Ralph Schindler (ralph) on 2013-04-05T16:07:10.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-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

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