Beispiel #1
0
 public static function favorites($sUser)
 {
     $aV = YouTube::raw_favorites($sUser);
     $aVideos = array();
     foreach ($aV->feed->entry as $h) {
         $s = $h->link[0]->href;
         $id = substr($s, strpos($s, 'v=') + 2);
         $hVideo = YouTube::get_video($id);
         $hVideo['favorited'] = $h->updated->t;
         $hVideo['link'] = $h->link[0]->href;
         $aVideos[] = $hVideo;
     }
     return $aVideos;
 }