Merge pull request #6769 from wallabag/add-not-parsed-boolean

Add `isNotParsed` field on Entry entity
This commit is contained in:
Nicolas Lœuillet
2023-08-21 20:18:44 +02:00
committed by GitHub
16 changed files with 299 additions and 6 deletions

View File

@ -119,6 +119,10 @@ abstract class WallabagImport extends AbstractImport
$entry->setUrl($data['url']);
$entry->setTitle($data['title']);
if (\array_key_exists('is_parsed', $data)) {
$entry->setNotParsed(true);
}
// update entry with content (in case fetching failed, the given entry will be return)
$this->fetchContent($entry, $data['url'], $data);

View File

@ -65,6 +65,7 @@ class WallabagV1Import extends WallabagImport
if (\in_array($entry['title'], $this->untitled, true)) {
$data['title'] = $this->fetchingErrorMessageTitle;
$data['html'] = $this->fetchingErrorMessage;
$entry['is_not_parsed'] = 1;
}
if (\array_key_exists('tags', $entry) && '' !== $entry['tags']) {