X-Git-Url: https://git.llucax.com/personal/documentos.git/blobdiff_plain/ea2f20c73fd9ce80da968161698eb0ad6ddcdf91..23462221fbecfb39565b4a22bd010d7a04960672:/mp3_labels/procesar.php diff --git a/mp3_labels/procesar.php b/mp3_labels/procesar.php index bf46fc2..daf5952 100755 --- a/mp3_labels/procesar.php +++ b/mp3_labels/procesar.php @@ -2,12 +2,13 @@ loadTemplateFile($template); $tpl->setGlobalVariable(array( - 'N' => $numero, + 'N' => sprintf("%02d", $numero), 'PUNTOS' => PUNTOS, )); @@ -70,8 +71,8 @@ if ($datos) { $tpl->setVariable(array( 'X' => $x, 'TEXTO_Y' => $y, - 'LINEA_Y' => $y + PUNTOS - 1, - 'LINEA_ANCHO' => strlen($artista) * 6, + 'LINEA_Y' => $y + PUNTOS + 2.5, + 'LINEA_ANCHO' => strlen($artista) * 2.5 + 25 / strlen($artista), 'ARTISTA' => translate($artista), )); sort($albums); @@ -86,7 +87,6 @@ if ($datos) { } $results = $tpl->get(); - $fo = fopen($filename, 'w'); fputs($fo, $results); fclose($fo);