CakePHP-GData-Plugin icon indicating copy to clipboard operation
CakePHP-GData-Plugin copied to clipboard

No way to grab a playlist by ID, only by user. Patch included.

Open mattalxndr opened this issue 14 years ago • 0 comments
trafficstars

Here's a patch to models/you_tube_playlist.php:

83d82
<     'playlist' => true,
144,154d142
<       $query = $this->_paginationParams($query);
<       return $query;
<     } else {
<       return $results;
<     }
<   }
< 
<   protected function _findPlaylist($state, $query = array(), $results = array()) {
<     if ($state == 'before') {
<       $this->request['auth'] = true;
<       $this->request['uri']['path'] = 'feeds/api/playlists/' . $query['conditions']['playlistId'];

mattalxndr avatar Jan 24 '11 00:01 mattalxndr