mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-24 01:51:01 +00:00
[fix] #375 Readability.com changed its export format
This commit is contained in:
parent
4d058d4824
commit
9bc32632af
1 changed files with 28 additions and 25 deletions
|
@ -806,15 +806,16 @@ class Poche
|
|||
$url = NULL;
|
||||
$favorite = FALSE;
|
||||
$archive = FALSE;
|
||||
foreach ($value as $attr => $attr_value) {
|
||||
foreach ($value as $item) {
|
||||
foreach ($item as $attr => $value) {
|
||||
if ($attr == 'article__url') {
|
||||
$url = new Url(base64_encode($attr_value));
|
||||
$url = new Url(base64_encode($value));
|
||||
}
|
||||
$sequence = '';
|
||||
if (STORAGE == 'postgres') {
|
||||
$sequence = 'entries_id_seq';
|
||||
}
|
||||
if ($attr_value == 'true') {
|
||||
if ($value == 'true') {
|
||||
if ($attr == 'favorite') {
|
||||
$favorite = TRUE;
|
||||
}
|
||||
|
@ -823,6 +824,7 @@ class Poche
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
# we can add the url
|
||||
if (!is_null($url) && $url->isCorrect()) {
|
||||
$this->action('add', $url, 0, TRUE);
|
||||
|
@ -837,6 +839,7 @@ class Poche
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->messages->add('s', _('import from Readability completed. ' . $count . ' new links.'));
|
||||
Tools::logm('import from Readability completed');
|
||||
Tools::redirect();
|
||||
|
|
Loading…
Reference in a new issue