Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
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
Old 01-16-2008, 11:23 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,377
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's on my rather long TODO list

https://libprs500.kovidgoyal.net/ticket/153
kovidgoyal is offline   Reply With Quote
Old 01-17-2008, 09:42 AM   #3
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
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!
astrodad is offline   Reply With Quote
Old 01-17-2008, 10:53 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,377
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Cool patches are always welcome
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Command Line Interface TOC bcolflesh Calibre 3 02-04-2010 04:09 PM
Where are the command line tools? PaulChernoch Calibre 17 10-23-2009 12:08 PM
Why use the command line? slantybard Calibre 6 07-22-2009 12:17 PM
Errors on Command Line drnkusv Calibre 11 11-07-2008 02:59 PM


All times are GMT -4. The time now is 11:34 AM.


MobileRead.com is a privately owned, operated and funded community.