Plugin to import Starred/Shared from Google Reader

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
KestL
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 03 May 2013, 11:35

Re: Plugin to import Starred/Shared from Google Reader

Postby KestL » 01 Jul 2013, 16:44

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

User avatar
MichaelTunnell
LMAO What?
Posts: 14
Joined: 26 Apr 2013, 05:28
Location: Alabama
Contact:

Re: Plugin to import Starred/Shared from Google Reader

Postby MichaelTunnell » 03 Jul 2013, 00:44

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!

Newmak
Bear Rating Trainee
Bear Rating Trainee
Posts: 1
Joined: 13 Aug 2013, 20:06

Re: Plugin to import Starred/Shared from Google Reader

Postby Newmak » 13 Aug 2013, 20:09

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?

User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: Plugin to import Starred/Shared from Google Reader

Postby sleeper_service » 13 Aug 2013, 21:57

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


Return to “Support”

Who is online

Users browsing this forum: No registered users and 1 guest