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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-30-2015, 09:28 AM   #1
esvorontsov
Member
esvorontsov began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Sep 2015
Device: sdfvsdvsdvsdvsd
How to get full path of the book?

Hello

How to get full path of the book in the gui plagin code, if I know book_id, to copy a file to another place?
esvorontsov is offline   Reply With Quote
Old 10-01-2015, 04:46 AM   #2
esvorontsov
Member
esvorontsov began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Sep 2015
Device: sdfvsdvsdvsdvsd
found this solution

api = self.gui.current_db.new_api
fmt = api.formats(book_id, verify_formats=False)[0]
dest = r"d:\books\bookname." + fmt
api.copy_format_to(book_id, fmt, dest, use_hardlink=False)
esvorontsov is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with path to book folder on device using usb driver mike_i Devices 1 03-03-2015 10:15 AM
PRS-350 About the epub custom font path And how to know the path? 52manhua Sony Reader Dev Corner 6 12-20-2013 01:28 AM
DR1000 DR1000S: How to create file shortcuts using a full path? godel10 iRex 12 03-20-2010 12:12 AM
Save to Disk now saving file with full path? Mnementh Calibre 3 09-14-2009 01:24 AM
Free Kindle book: Summer's Path by Scott Blum doctorow Deals and Resources (No Self-Promotion or Affiliate Links) 6 02-21-2009 07:32 AM


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


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