Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

[greg-dev] liferea to gregarius script

Hi

Liferea user since a while, I decided to switch to gregarius.
I need to keep my liferea datas, I have some items I want
to keep.

Writing a php script to do that is pretty easy. Liferea store
a cache of all the feeds in xml file. It's easy to read the xml
files and imports in the gregarius database.

I'm looking for a description of all the fields for the tables
channels and item. Looking at the table there is some fields
I don't understand the purpose and I didn't look in the gregarius
code enough to understand.  I mean for instance the 'itemsincache' or
the 'etag' in the 'channels' table.  Or the 'md5sum' and 'guid' in the
'item' table.

In a first time, I'm thinking to do a basic script that read the xml cache
files and import in the sql database recreating the gregarius information
if needed.

In a second time, I'm thinking instead to to first read my cache xml
file and
second use the gregarius engine (classes) to import the items one by one in
the same way as reading rss from internet. I feel this one better because
I'm guessing I will not have to deal with internal gregarius information
like itemsincache or md5sum (see above).

Do you have any idea to help me in the task ?

I quickely look tonight for documentation about classes or database schema
but haven't find yet :(

Thanks a lot !

Regards


Posted by kikoune [reply] at Mon Jun 11 07:52:33 BST 2007