X-Git-Url: https://git.llucax.com/personal/documentos.git/blobdiff_plain/ea2f20c73fd9ce80da968161698eb0ad6ddcdf91..b6b911da52dca4857c407d79ca7f5ad81dc09c07:/mp3_labels/procesar.php diff --git a/mp3_labels/procesar.php b/mp3_labels/procesar.php index bf46fc2..85553f1 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);