Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Zend_Gdata_YouTube_PlaylistVideoEntry::getVideoId() gives wrong id #31

Open
zfbot opened this issue Apr 5, 2013 · 3 comments
Open

Zend_Gdata_YouTube_PlaylistVideoEntry::getVideoId() gives wrong id #31

zfbot opened this issue Apr 5, 2013 · 3 comments

Comments

@zfbot
Copy link

zfbot commented Apr 5, 2013

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
Copy link
Author

zfbot commented Apr 5, 2013

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

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

@zfbot
Copy link
Author

zfbot commented Apr 5, 2013

(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
Copy link
Author

zfbot commented Apr 5, 2013

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant