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


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

$playlist = $yt->getPlaylistVideoFeed('…');
foreach ($playlist as $i=>$video) {
    echo $video->getVideoId() . ' ' . $video->getVideoTitle() ."\n";

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


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

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 .

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