Actualizar con el nuevo formato de archivo de 2022

This commit is contained in:
Héctor Pérez Martín 2022-03-19 00:07:14 +01:00
parent 640f4316b9
commit dfaea63573
1 changed files with 4 additions and 2 deletions

View File

@ -132,7 +132,8 @@ class ProcessCommand extends ConsoleKit\Command
$zip->open($source);
for( $i = 0; $i < $zip->numFiles; $i++ ) {
if (strstr($zip->statIndex($i)['name'], 'TRAM')) {
if (strstr($zip->statIndex($i)['name'], 'TRAM') ||
strstr($zip->statIndex($i)['name'], 'Tramero')) {
$zippedSourceFileName = $zip->statIndex($i)['name'];
break;
}
@ -150,7 +151,8 @@ class ProcessCommand extends ConsoleKit\Command
$zip2->open('/tmp/' . $zippedSourceFileName);
for( $i = 0; $i < $zip2->numFiles; $i++ ) {
if (strstr($zip2->statIndex($i)['name'], 'TRAM')) {
if (strstr($zip2->statIndex($i)['name'], 'TRAM') ||
strstr($zip->statIndex($i)['name'], 'Tramero')) {
$zippedSourceFileName2 = $zip2->statIndex($i)['name'];
break;
}