Comments (6)
A couple other things worth mentioning: both Calibre and Calibre's ebook viewer have a button to clear the lists mentioned above, after doing so I'm left with:
"gui_view_history": [],
and
"viewer_open_history": []
So if the cleaner results like that, hopefully that means it's pretty safe, though I don't know if that's the only thing those built in "clear recent" functions do, and I haven't yet tested what happens if you clear the lists manually while Calibre or Calibre's ebook viewer are open — that might get messy.
And I'll mention this, but I don't think it's important: in "gui_view_history", the number which accompanies the name of each book is the order the book was imported to Calibre. Notice how Calibre Quick Start Guide has number one, that's because it was the first book imported (it comes with Calibre by default).
from cleanerml.
How about this?
action command="json" search="file" path="~/Calibre Library/metadata_db_prefs_backup.json" address="gui_view_history"
action command="json" search="file" path="~/.config/calibre/viewer.json" address="viewer_open_history"
from cleanerml.
The one for "viewer_open_history" is working, but the "gui_view_history" one isn't changing metadata_db_prefs_backup.json at all.
from cleanerml.
It is working here.
First, make sure Calibre is completely closed. (See pull request #92--perhaps you could add the same for Linux.)
Second, do you see a line like this in the BleachBit log?
Clean file 4.1kB /home/user/Calibre Library/metadata_db_prefs_backup.json
from cleanerml.
Derp derp, my mistake, I forgot my Calibre library wasn't in the default location ><. A significat number of Calibre users may not use the default location either. It looks like the library location information is primarily stored in ~/.config/calibre/global.py
e.g.
# library path
# Path to directory in which your library of books is stored
library_path = u'/home/hololinuxmint/Calibre Library'
Do we have a way of parsing that information to find a custom located library? If not, it might be a good idea to add a warning letting people know that their library needs to be in the default location "~/Calibre Library" for those options to work.
This might warrent opening a new issue, but I'll ask here first. So the recents list for Calibre's ebook viewer is being cleared fine, but that's still not the case with Calibre's recents list even though the JSON files are being cleared fine. This is because the metadata_db_prefs_backup.json
file is what it sounds like, that file is just a backup of what's in ~/Calibre Library/metadata.db
. The real recents list is in that db on the preferences table, with the key gui_view_history
and a val being the same 2D array in the JSON file (pics). Do we have a way of clearing that data?
As for the running check, I'll look into that after #92 is merged so as to avoid a merge conflict.
from cleanerml.
I can say that my library is NOT in the default location and I really think the default is pretty much a bad idea (just my opinion) because your user profile can blow up in size signifcantly.
The possiblity to parse (text) file content would help in this case and there will be "a lot" more cases this feature could help.
from cleanerml.
Related Issues (20)
- Description leads to bleachbit.sourceforge HOT 1
- Windows Linux Subsystem HOT 4
- [new]sdcv history cleaner
- Search function walk.all and delete not empty folders HOT 3
- [Chrome/Vivaldi] browsers local storage not properly deleted HOT 3
- Better documentation on CleanerML syntax for cleaning ini-files HOT 2
- Better documentation on CleanerML syntax for cleaning XML-files HOT 2
- Please create a release HOT 5
- search=path is not supported by bleachbit HOT 7
- Possible improvment for the SMPlayer cleaner, but welcome? HOT 3
- Driver Leftovers.xml - Windows HOT 2
- Correct/clarify 'How to use' to find personal_cleaner_dir
- Cleanup of all Windows User Profiles possible? HOT 2
- This PR should make PR https://github.com/bleachbit/bleachbit/pull/86 obsolete! HOT 2
- Cleaner action to compress files? HOT 4
- New CleanerML file for Heroes of the Storm HOT 4
- Tor Cache Cleaner module HOT 1
- What are the "promotion" rules for cleaner files? HOT 2
- Microsoft Edge Legacy cleaner ... and frustration HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cleanerml.