zendframework / zf1

This project reached its end-of-life on 2016-09-28. Contains conversion of ZF1 subversion repo to git, from version 15234 forward, and only containing master and release-1.12 branches and 1.12 tags.
https://framework.zend.com/blog/2016-06-28-zf1-eol.html
BSD 3-Clause "New" or "Revised" License
357 stars 800 forks source link

Zend_Gdata_YouTube_PlaylistVideoEntry::getVideoId() gives wrong id #31

Open zfbot opened 11 years ago

zfbot commented 11 years ago

Jira Information

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

Description

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()

zfbot commented 11 years ago

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

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

zfbot commented 11 years ago

(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.

zfbot commented 11 years ago

This issue was ported from the ZF2 Jira Issue Tracker at http://framework.zend.com/issues/browse/ZF-12461

Known GitHub users mentioned in the original message or comment: @akrabat