$log .= "loadContent: " . $e->getMessage() . "\n"; } $video->setTag($catmig); $video->setSubTag($subcatmig); //$video->setKeywords($keywords[$i]); //$video->setShortDescription($shortDesc[$i]); //$video->setLongDescription($longDesc[$i]); $todos = true; $alguno = false; try { $content_download = FALSE; $log .= "\tdescargando contenido...\n"; $ftpCon = new Ftp(); $conectado = $ftpCon->login_r(null, null, FTP_CONN_RETRIES); if ($conectado === TRUE) { $content_download = $video->downloadContent($ftpCon); foreach ($content_download as $formato => $bajado) { $todos = $todos && $bajado; if (!$bajado) { echo "<font color=\"red\">No se pudo bajar el video de formato {$formato}<br />"; } else { $alguno = true; } } } else { echo "ERROR: no se puede loguear al ftp\n"; } if ($alguno === TRUE) { $xmlContent = $video->genXML(); $arrayMuestra[] = $video->getArraySubForm(); $total++;