function CjYoukuVideos($category, $type_id, $page, $pid)
{
    $url = replaceStr(CATEGORY, "{category}", $category);
    $url = replaceStr($url, "{page}", $page);
    $playUrlsContent = getPageInfo($url);
    $category_content = $playUrlsContent->shows;
    if (is_array($category_content)) {
        foreach ($category_content as $siteObject) {
            ProcessVideos($siteObject, $type_id, $pid);
        }
    }
}
         $pid = "179";
         $category = "综艺";
         break;
     case "131":
         //动漫
         $pid = "180";
         $category = "动漫";
         break;
 }
 if ($id === '' || $pid === '') {
     errmsg("采集提示", "采集信息获取错误");
 }
 if ($category !== $content->category) {
     errmsg("采集提示", "错误:非所选视频类型");
 }
 ProcessVideos($content, $type_id, $pid);
 showmsg("优酷视频采集完成!", "collect_vod_youku.php");
 function ProcessVideos($content, $type_id, $pid)
 {
     global $db;
     $p_playtype = 'youku';
     $titlecode = $content->name;
     $sql = "select m_id,m_name,m_type,m_area,m_playfrom,m_starring,m_directed,m_pic,m_content,m_year,m_addtime,m_urltest,m_zt,m_pid,m_typeid,m_hits,m_playserver,m_state from {pre}cj_vod where m_pid='" . $pid . "' and m_name='" . $titlecode . "'  and m_playfrom='" . $p_playtype . "'  order by m_id desc";
     $rowvod = $db->getRow($sql);
     if ($rowvod) {
         $movieid = $rowvod["m_id"];
         $lzcode = $content->episode_updated;
         if ($type_id === "3") {
             $remarkscode = $content->episode_updated;
         } else {
             $remarkscode = $content->episode_count;