1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-27 11:22:17 -05:00

[fix] #375 Readability.com changed its export format

This commit is contained in:
Nicolas Lœuillet 2014-01-03 15:18:13 +01:00
parent 4d058d4824
commit 9bc32632af

View File

@ -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();