Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 10-13-2016, 09:58 AM   #1
notbuu
Junior Member
notbuu began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2016
Device: none
Import to Calibre from file path

Hi!

Is there a (simple) way to import an Ebook to Calibre with the full qualified file path programmatically? Something like calibre.import(filepath)? I would like to do the same as when I am drag and drop an Ebook to Calibre gui.

Thx!
notbuu is offline   Reply With Quote
Old 10-13-2016, 10:12 AM   #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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://manual.calibre-ebook.com/db_...ache.add_books

And use the calibre.ebooks.metadata.meta.get_metadata fucntion to get the Metadata object needed by the above.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-13-2016, 11:56 AM   #3
notbuu
Junior Member
notbuu began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2016
Device: none
And once again that what exactly what I was missing because I used the db interface before but I didn't know how to get the mi from a plain ebook! Thx!
notbuu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Import PDF & File Naming zeitchef Library Management 3 11-17-2015 10:30 PM
calibre library error No such file or directory after import tsavino Calibre 2 06-06-2014 03:20 PM
FINDING FILE PATH IN CALIBRE Berni Calibre 3 02-05-2011 10:10 AM
PRC file doesn't fully import into Calibre MSJim Kindle Formats 1 06-01-2010 02:55 PM
Calibre doesn't import all of PRC file MSJim Calibre 5 06-01-2010 02:26 PM


All times are GMT -4. The time now is 01:14 AM.


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