Browse Source

update mime on progress function event

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

Loading…
Cancel
Save