}
    if ($resource->service_type_id != ServiceType::find_or_create_by_translated_label("EOL Transfer Schema")->id) {
        continue;
    }
    if (!in_array($resource, $resources)) {
        $resources[] = $resource;
    }
}
foreach ($resources as $resource) {
    // check the file's modified date and when it was last harvested
    if (!$resource->ready_to_update() && !$resource->ready_to_harvest(10)) {
        continue;
    }
    if ($resource->id == 11) {
        continue;
    }
    //biolib.cz
    if ($resource->id == 42) {
        continue;
    }
    //fishbase
    // if($resource->id!=59) continue;
    if ($resource->accesspoint_url) {
        echo "{$resource->id} {$resource->accesspoint_url}\n";
        $new_resource_path = $manager->grab_file($resource->accesspoint_url, "resource", array('resource_id' => $resource->id, 'timeout' => 600));
        if (!$new_resource_path) {
            $mysqli->update("UPDATE resources SET resource_status_id=" . ResourceStatus::find_or_create_by_translated_label("Upload Failed")->id . " WHERE id={$resource->id}");
        }
    }
}
$log->finished();