Skip to content

dossma/ebook-rename

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ebook-rename

This program renames your files by picking title and author from its metadata.

Example: dafoe.epub is being renamed to Robinson Crusoe by Daniel Dafoe.epub

Motivation

While people have a growing digital library, oftentimes the file names are messy and inconsistent.

This program cleans up your files and you get a homogenous file name structure.

Procedure

The program scans a directory for pdf and epub files. For each file, when metadata is present, the program proposes its renaming which the user can confirm or not. The proposed file name has the pattern title by author.pdf (or epub). In case you deny the proposed renaiming, for example when metadata is empty and the proposed file name is bad, the program asks you to rename it manually. You then enter a new file name manually or decide to leave its present file name. So for each file, you are in control if and how it should be renamed.

Get started

  1. Download the file
  2. Open it in your Python IDE (Recommendation: PyCharm)
  3. Paste the target path into the variable quotes of folder = r"C:\path\to\your\ebook\folder"
  4. Run

Setting up a test folder for a first try is recommended as the file names will be overwritten.

Development setup

Required external libraries are

pip install PyPDF2
pip install ebookatty

Meta

Author: Jonas Dossmann

Distributed under the GPL-3.0 license.

https://github.com/dossma/

About

Rename pdf and epub files by their metadata entries

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages