mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-05 23:18:47 +00:00
Requeue depending on producer
Browser import can requeue message from `parseEntry` but we should take care of the way import are handled (depending on the producer)
This commit is contained in:
parent
1e3d74a9cf
commit
5453500458
1 changed files with 12 additions and 0 deletions
|
@ -139,12 +139,24 @@ abstract class BrowserImport extends AbstractImport
|
||||||
public function parseEntry(array $importedEntry)
|
public function parseEntry(array $importedEntry)
|
||||||
{
|
{
|
||||||
if ((!array_key_exists('guid', $importedEntry) || (!array_key_exists('id', $importedEntry))) && is_array(reset($importedEntry))) {
|
if ((!array_key_exists('guid', $importedEntry) || (!array_key_exists('id', $importedEntry))) && is_array(reset($importedEntry))) {
|
||||||
|
if ($this->producer) {
|
||||||
|
$this->parseEntriesForProducer($importedEntry);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->parseEntries($importedEntry);
|
$this->parseEntries($importedEntry);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists('children', $importedEntry)) {
|
if (array_key_exists('children', $importedEntry)) {
|
||||||
|
if ($this->producer) {
|
||||||
|
$this->parseEntriesForProducer($importedEntry['children']);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->parseEntries($importedEntry['children']);
|
$this->parseEntries($importedEntry['children']);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue