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
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.
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.
- Download the file
- Open it in your Python IDE (Recommendation: PyCharm)
- Paste the target path into the variable quotes of
folder = r"C:\path\to\your\ebook\folder"
- Run
Setting up a test folder for a first try is recommended as the file names will be overwritten.
Required external libraries are
- PyPDF2: https://github.com/py-pdf/PyPDF2
- ebookatty: https://github.com/alexpdev/ebookatty
pip install PyPDF2
pip install ebookatty
Author: Jonas Dossmann
Distributed under the GPL-3.0 license.