View Single Post
Old 01-16-2008, 09:00 PM   #1
astrodad
Guru
astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.
 
astrodad's Avatar
 
Posts: 942
Karma: 567366
Join Date: Dec 2007
Device: Kindle Paperwhite 1, iPad, iPhone 5
Command line interface to import to libprs500 database

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?
astrodad is offline   Reply With Quote