Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 1.28 KB

README.md

File metadata and controls

35 lines (30 loc) · 1.28 KB

ebook-series-renamer

  • ONLY USE ON FOLDERS CONTAINING NOTHING BUT TARGET .MOBI
  • HAVE BACKUPS

Adds the name of a book series to the title metadata field of Kindle-formated (.mobi) eBooks so they show up sorted by series name on a Kindle device.

Usage:

./ebook-series-renamer.rb [folder]

Takes the series name from the containing foldername. The expected folder structure looks like this:

├─┬◆ [The Lord of the Rings]
│ ├──◆ The Fellowship Of The Ring.mobi
│ ├──◆ The Two Towers.mobi
│ └──◆ The Return Of The King.mobi
└─┬◆ [Some Other Series]
  ├──◆ Volume One.mobi
  ├──◆ Volume Two.mobi
  └──◆ Volume Three.mobi

Requirements:

  • ruby
  • "ebook-meta" binary from the calibre project somewhere in PATH. If you install calibre via Homebrew, it's added to your PATH automatically.
  • The mobi gem.
$ brew install calibre
$ gem install mobi

Does not (yet):

  • do any checks to try to be non-destructive
  • do any sorting inside a series
  • handle anything besides .mobi
  • spider a website and turn it into a perfectly formatted and metadata'd set of Pandoc Markdown source files and prettyprinted eBooks.