Skip to content

queitsch/ebook-series-renamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages