Order it now! Amazon prioritizes orders on a first come, first served basis.


View Full Version : Command line interface to import to libprs500 database


jplumey
01-16-2008, 10:00 PM
So I wrote an automator "script" for my Mac tonight that does the following:

1. Takes a URL from the clipboard
2. Downloads the HMTL page
3. Asks me for a name for the new file and title
4. Runs the HTML2LRF command from libprs500
5. Moves the file to an import folder
6. Sets a growl notification

The final step in my evil plan will be to import it into the database and set the Series tag to something specific so that I know to copy to the reader next time I run libprs500.

Ideally, there would be another step, and that would be to automatically import all flagged items (in a series or with a tag) to the Reader once it's connected.

Is there a command to import lrf's into the database?

kovidgoyal
01-17-2008, 12:23 AM
It's on my rather long TODO list

https://libprs500.kovidgoyal.net/ticket/153

jplumey
01-17-2008, 10:42 AM
Doh. I searched on your site but I didn't see the ticket. I'm trying to learn Python as fast as I can so that I can help, believe me!

kovidgoyal
01-17-2008, 11:53 AM
Cool patches are always welcome :)