Ejemplo n.º 1
0
@($rating = $r1['average']);
$a = ' -->
<?xml version="1.0" encoding="utf-8"?>';
$a .= '<ngsyvideo>
<id>' . $id . '</id>
<title>' . $xml->title . '</title>
<author>' . $author . '</author>
<image>' . $thumbnail . '</image>
<rating>' . $rating . '</rating>
<length>' . $length . '</length><!-- 单位为秒(s) -->
<quality>';
include 'nglib.php';
foreach (getVList($id) as $t_num1 => $t_url) {
    $t_num = substr($t_num1, 1);
    $a .= '<qitem id="' . $t_num . '" description="' . $QualityList[$t_num] . '">' . $t_url . '</qitem>';
}
$a .= '</quality>';
$ccurl = get_one_arg_data($str, 'ttsurl');
$cc = get_net_data($ccurl . '&type=list&tlangs=1&asrs=1&hl=zh&v=' . $id);
if (strlen($cc) > 2) {
    $a .= $cc;
    print $cc;
} else {
    $a .= '<transcript_list/>';
    print '<transcript_list/>';
}
print '<laobubu>';
$a .= '<ccurl>' . strstr($ccurl, "timedtext?") . '</ccurl>
</ngsyvideo>';
die($a);
flush();
Ejemplo n.º 2
0
function fmt_url_map($str1)
{
    return explode(",", get_one_arg_data($str1, "fmt_url_map"));
}