https://github.com/mendhak/calibre-gdrive-fix
Script to fix broken Calibre paths caused by Google Drive
https://github.com/mendhak/calibre-gdrive-fix
Last synced: 12 days ago
JSON representation
Script to fix broken Calibre paths caused by Google Drive
- Host: GitHub
- URL: https://github.com/mendhak/calibre-gdrive-fix
- Owner: mendhak
- License: mit
- Created: 2014-06-01T22:51:49.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-10T16:47:24.000Z (almost 12 years ago)
- Last Synced: 2025-04-06T00:27:43.248Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 180 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Calibre Google Drive Fix
==================
Restores ebook directories with their Calibre IDs, originally removed by Google Drive.
## The problem
Calibre requires a specific directory structure that uses parentheses in the book's directory name, for example
The Martian (317)
Google Drive, however, has a [bug](https://productforums.google.com/forum/#!searchin/drive/rename/drive/XJzVGC868DQ%5B1-25-true%5D), it does not like parentheses in directory names, and so the above ends up in Google Drive as
The Martian
The next time you sync your ebooks on a new machine, you don't get the parentheses back.
Calibre will list your books nicely, but is unable to find the actual folder.
## This script
This script fixes the problem by renaming the folders back to what Calibre expects.
To use it,
python gdrivefix.py
You will be prompted to enter the path to your ebooks directory. The script goes through and renames the directories to their numbered versions.
## Notes
You would normally run this script once on each new install. After that you don't need it.
Just in case, do make a backup of your ebooks directory before you run it.
This has only been tested on Ubuntu 14.04 with Python 2.7. It should work as long as you have Python 2.x.