Automation init...3
This commit is contained in:
parent
32c58a2f76
commit
07bf39944a
@ -44,11 +44,7 @@ abstract class MyCrawlerLibrary extends CommonLibrary
|
|||||||
foreach ($nodes as $node) {
|
foreach ($nodes as $node) {
|
||||||
try {
|
try {
|
||||||
list($fileName, $content) = $this->getMySocket()->download($node->attr($options["attr"]));
|
list($fileName, $content) = $this->getMySocket()->download($node->attr($options["attr"]));
|
||||||
$entity = $this->getMyStorage()->save($fileName, $mediaType, $content, $file_sequence);
|
$entitys[] = $this->getMyStorage()->save($fileName, $mediaType, $content, $file_sequence);
|
||||||
if ($entity === null) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$entitys[] = $entity;
|
|
||||||
$file_sequence++;
|
$file_sequence++;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
log_message("notice", $e->getMessage());
|
log_message("notice", $e->getMessage());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user