size ['.$size.'] package...'); #print('Downloading file_check_sha1 => sha1_file ['.$sha1_file.'] package...'); #print('Downloading file_check_sha1 => sha1_file ['.sha1($contents).'] package...'); //echo "$file => $sha1_file => $size \n"; $detalle['name'] = basename($file); $detalle['path'] = "packages/$version/".basename($file); $detalle['sha'] = $sha1_file; $detalle['size'] = $size; $detalle['download_url'] = "https://raw.githubusercontent.com/jsavargas/unRAID-NerdTools/2022.09.28/packages/$version/".basename($file); $detalle['type'] = 'file'; //print_r($detalle); //print_r($detalle); // $detalle['download_url'] = "https://raw.githubusercontent.com/UnRAIDES/unRAID-NerdPack/master/packages/$version/".basename($file); return ($detalle); } echo json_encode($array,JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES ); ?>