目前:現在的加密結果是隨機0-9條不加密其餘全部加密
想要結果:0-9條隨機加密 其餘皆不加密
#$fileNameArr = scandir($dir2);
foreach ($fileNameArr as $fileName) {
if ($fileName != '.' && $fileName != ' ..') {
$m3u8txt = file_get_contents($dir2.'/'.$fileName);
if (strstr($m3u8txt,"\r")==true) {
$m3u8txt = str_replace("\r","",$m3u8txt);
}
# # preg_match_all('/#EXTINF:(.*),\n?(.*)\n?/',$m3u8txt,$m3u8Arr);
# $tsArr = $m3u8Arr[2]; if (count($timeArr) == count($tsArr)) { $# 8m# 8 if ($jmtype == 2) { 一天 foreach ($tsArr as $ key => $ts) { $ts = trim($ts); ||mtype($==m ); $key,$r) == true)) { $jmts = publicEncrypt($ts);# $m3u8 = $m3u8 . "\n" . '#EXTINF:' . $timeArr[$key] .',';## if (empty($ web.'? ts='.$jmts;
$m3u8 = $m3u8 . "\n" . $jmurl;
# $m3u8 = $m3u8 . "\ n" . $ts; if ($jmtype == 1) {echo $fileName . '-' . $ts . '加密失敗';
# ### }