Zend_Gdata_YouTube_PlaylistVideoEntry::getVideoId() gives wrong id #31

zfbot opened this Issue Apr 5, 2013 · 3 comments

1 participant


Jira Information

Original Issue: ZF-12461
Issue Type: Bug
Reporter: Scotepi
Created: 11/06/12
Assignee: Trevor Johns
Components: Zend_Gdata


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('https://gdata.youtube.com/feeds/api/playlists/PLB64B76A0570E8A46');
foreach ($playlist as $i=>$video) {
    echo $video->getVideoId() . ' ' . $video->getVideoTitle() ."\n";

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


(Originally posted by: akrabat on 11/06/12)

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


(Originally posted by: Scotepi on 11/06/12)

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 http://gdata.youtube.com/demo/index.html you can put the request URI as /feeds/api/playlists/PLB64B76A0570E8A46 and see the video id's are at media:groupyt:videoid.


This issue was ported from the ZF2 Jira Issue Tracker at

Known GitHub users mentioned in the original message or comment:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment