mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 10:22:14 +01:00
Test if some keys are missing in v2 import
This commit is contained in:
parent
704ed658a9
commit
de3b19b2ce
@ -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 New Issue
Block a user