|
大神们如何将代码中红色部分第分辨率地址修改成高分辨率地址,实验几次不成功!!! 十分感谢
高分辨率地址:$url = "http://webapi.miguvideo.com/gateway/playurl/v3/play/playurl?rateType=3&contId=".$id;
case 'migu': // 咪咕直播
define('__USER_AGENT__', 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1');
$channelId = _getPathInfo(1);
if (is_null($channelId)) {
$list = [];
$vomsId = 'a5f78af9d160418eb679a6dd0429c920';
do {
$result = json_decode(_curl('http://live.miguvideo.com/live/v2/tv-data/' . $vomsId, 'GET', [], [
'Origin: http://m.miguvideo.com',
'Referer: http://m.miguvideo.com/'
]), true);
if (is_array($result) && array_key_exists('code', $result) && $result['code'] == '200') {
if (!array_key_exists($vomsId, $list)) {
$list[$vomsId] = [];
}
$list[$vomsId]['data'] = $result['body']['dataList'];
foreach ($result['body']['liveList'] as $item) {
if ($item['vomsID'] != 'e7716fea6aa1483c80cfc10b7795fcb8') {
if (!array_key_exists($item['vomsID'], $list)) {
$vomsId = $item['vomsID'];
$list[$vomsId] = ['name' => $item['name']];
break;
} else {
$list[$vomsId]['name'] = $item['name'];
}
}
}
} else {
$result = ['body' => ['nowVomsId' => $vomsId]];
}
} while ($vomsId != $result['body']['nowVomsId']);
unset($list['e7716fea6aa1483c80cfc10b7795fcb8']);
header('Content-Type: text/plain; charset=UTF-8');
foreach ($list as $item) {
if (isset($item['name'])) {
$item['name'] = $item['name'] == '央视' ? '体育' : $item['name'];
} else {
$item['name'] = '央视';
}
echo (isset($item['name']) ? $item['name'] : '央视频道') . ',#genre#' . PHP_EOL;
foreach ($item['data'] as $channel) {
echo $channel['name'] . ',' . _getUrl(_getRequestUri('migu', $channel['pID'])) . PHP_EOL;
}
echo PHP_EOL;
}
exit;
} else {
$result = json_decode(_curl('http://webapi.miguvideo.com/gateway/playurl/v2/play/playurlh5', 'GET', [
'contId' => $channelId,
'rateType' => '1,2,3,4,5,6', // 清晰度(实测调不了)
'clientId' => 'e617e2497d502bd75cbefd4a06087877', // 客户端号
'channelId' => '0131_10010001005', // 渠道号(固定值)
'startPlay' => 'true',
], [
'Origin: http://m.miguvideo.com',
'Referer: http://m.miguvideo.com/'
]), true);
if (is_array($result) && array_key_exists('code', $result) && $result['code'] == '200') {
$result = _curl(_ddCalcuForMigo($result['body']['urlInfo']['url']), 'GET', [], [
'Origin: http://m.miguvideo.com',
'Referer: http://m.miguvideo.com/'
]);
if (!empty($result)) {
header('Location: ' . trim($result));
exit;
}
}
}
break;
|
|