예제 #1
0
파일: YouTube.php 프로젝트: poitch/dokin
 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;
 }