mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 20:56:28 +00:00
Test if some keys are missing in v2 import
This commit is contained in:
parent
704ed658a9
commit
de3b19b2ce
1 changed files with 9 additions and 3 deletions
|
@ -56,9 +56,15 @@ class WallabagV2Import extends WallabagV1Import implements ImportInterface
|
|||
$entry->setContent($importedEntry['content']);
|
||||
$entry->setReadingTime($importedEntry['reading_time']);
|
||||
$entry->setDomainName($importedEntry['domain_name']);
|
||||
$entry->setMimetype($importedEntry['mimetype']);
|
||||
$entry->setLanguage($importedEntry['language']);
|
||||
$entry->setPreviewPicture($importedEntry['preview_picture']);
|
||||
if (isset($importedEntry['mimetype'])) {
|
||||
$entry->setMimetype($importedEntry['mimetype']);
|
||||
}
|
||||
if (isset($importedEntry['language'])) {
|
||||
$entry->setLanguage($importedEntry['language']);
|
||||
}
|
||||
if (isset($importedEntry['preview_picture'])) {
|
||||
$entry->setPreviewPicture($importedEntry['preview_picture']);
|
||||
}
|
||||
|
||||
$this->em->persist($entry);
|
||||
++$this->importedEntries;
|
||||
|
|
Loading…
Reference in a new issue