Page 5 of 5

Re: Plugin to import Starred/Shared from Google Reader

Posted: 01 Jul 2013, 16:44
by KestL
Hello!
I found a problem with the import plugin. It is wrong to use NOW() as 'last_marked' value. It cause wrong sorting in the starred syndication feed.
I changed from

Code: Select all

$updated = date('Y-m-d h:i:s', $item['updated']);
$link = '';
to

Code: Select all

$updated = date('Y-m-d h:i:s', $item['updated']);
$last_marked = date('Y-m-d h:i:s', mb_substr($item['crawlTimeMsec'], 0, 10));
$link = '';

from

Code: Select all

$imported += (int) $this->create_article($owner_uid, $guid, $title,
$link, $updated,  $content, $author, $sql_set_marked, $tags,
$orig_feed_data);
to

Code: Select all

$imported += (int) $this->create_article($owner_uid, $guid, $title,
$link, $updated,  $content, $author, $sql_set_marked, $tags,
$orig_feed_data, $last_marked);

from

Code: Select all

private function create_article($owner_uid, $guid, $title, $link, $updated,  $content, $author, $marked, $tags, $orig_feed_data) {
to

Code: Select all

private function create_article($owner_uid, $guid, $title, $link, $updated,  $content, $author, $marked, $tags, $orig_feed_data, $last_marked) {

and from

Code: Select all

('$ref_id', '', NULL, $orig_feed_id, $owner_uid, $marked, '', '', NOW(), '', false, NOW())");
to

Code: Select all

('$ref_id', '', NULL, $orig_feed_id, $owner_uid, $marked, '', '', '$last_marked', '', false, '$last_marked')");


After that sorting works fine! I made a pull request in github

Re: Plugin to import Starred/Shared from Google Reader

Posted: 03 Jul 2013, 00:44
by MichaelTunnell
it should be mentioned for newbies that you have to activate the plugin before it shows up in Preferences -> Feeds.

Anyway, this worked flawlessly! Thank you VERY MUCH for making this Fox!

Re: Plugin to import Starred/Shared from Google Reader

Posted: 13 Aug 2013, 20:09
by Newmak
Hi to everybody, I tried to import my starred items. It's a large file (12MB). I received this error: {"error":{"code":7}}

How can I fix it?

Re: Plugin to import Starred/Shared from Google Reader

Posted: 13 Aug 2013, 21:57
by sleeper_service
Newmak wrote:Hi to everybody, I tried to import my starred items. It's a large file (12MB). I received this error: {"error":{"code":7}}

How can I fix it?


try searching