View Single Post
Old 10-02-2012, 04:44 AM   #1
Krytes
Enthusiast
Krytes began at the beginning.
 
Posts: 25
Karma: 24
Join Date: Jul 2008
Device: Kobo Aura HD
Post Script: Creating and populating shelves based on calibre tags

Here's my version of a script to create and populate Kobo Shelves (kobo touch firmware v. 2.1.1) based on my calibre tags. Feel free to tweak away to make it useful for you. Should be pretty self-explanatory.

Notes:
  • Put the script in your "Calibre Library" directory, connect the kobo, and run the script.
  • My Kobo is mounted in /media/KOBOeReader. Change pathToDB if yours isn't.
  • Works for epub and pdf. My files are non-drmed, don't know if drm would pose a problem.
  • My Calibre's set up to store files on the kobo in the format "Author name"/"Title - Author Name.epub", so, for example, Oliver Twist would be stored as "Charles Dickens/Oliver Twist - Charles Dickens.epub". Again, change the script to suit your needs.

tagger.py

Last edited by Krytes; 10-02-2012 at 04:48 AM.
Krytes is offline   Reply With Quote