Browse Source

update mime on progress function event

main
yggverse 8 months ago
parent
commit
7cf10079c6
  1. 8
      src/cli/document/crawl.php

8
src/cli/document/crawl.php

@ -203,11 +203,19 @@ foreach($index->search('')
$upload, $upload,
$uploaded $uploaded
) { ) {
global $request;
global $index; global $index;
global $document; global $document;
if (!$mime = curl_getinfo($request, CURLINFO_CONTENT_TYPE))
{
$mime = $document->get('mime');
}
$index->updateDocument( $index->updateDocument(
[ [
'mime' => $mime,
'time' => time(), 'time' => time(),
'code' => 200, 'code' => 200,
'index' => 0 'index' => 0

Loading…
Cancel
Save