01-25-2022, 10:28 AM | #1 |
Zealot
Posts: 111
Karma: 196896
Join Date: Oct 2021
Location: Germany
Device: Tolino Vision 5, Tolino Tab 8"
|
Possible to "lock" device folders to be scanned?
I usually configure my devices to only scan the "Books" and "Download" folders, to save time whenever the device is connected to Calibre via USB.
Unfortunately, whenever one adds folders, moves things around, or renames folders on the device, these will be automatically included in Calibre’s device folder scan, leading to enormous RAM waste and endless scanning times (especially when using Android MTP). Just took me almost half an hour (!) until Calibre showed the books on my tablet, just because I had installed an additional reader and some new StarDict dictionaries that each contained thousands of images in their "res" folders. So my question/feature request: Would it be possible to configure device folders to be scanned and then somehow "lock" that selection, so Calibre would not go and look for new folders/changes when connecting? |
01-25-2022, 11:07 AM | #2 |
creator of calibre
Posts: 43,896
Karma: 22666668
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, there isnt. Adding thousands of files to the Books folder is not likely to be a common occurrence.
|
Advert | |
|
01-25-2022, 11:12 AM | #3 |
Zealot
Posts: 111
Karma: 196896
Join Date: Oct 2021
Location: Germany
Device: Tolino Vision 5, Tolino Tab 8"
|
It’s not adding to the "Books" folder, but other random folders on the device, like "dictdata" or "koreader/data/dict/…". These get automatically checked.
So the actual process becomes:
Last edited by Moonbase59; 01-25-2022 at 11:16 AM. |
01-25-2022, 11:23 AM | #4 | |
Well trained by Cats
Posts: 29,834
Karma: 54837878
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I Shuffle my device (non-book) folder CONTENTS frequently with no rescan. Don't touch the path to known book folders. |
|
01-25-2022, 11:46 AM | #5 |
the rook, bossing Never.
Posts: 11,202
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Create the folder/directory, but with no contents.
Connect to Calibre Go to device settings untick that folder/directory (new ones are ticked by default) Now exit calibre You can now put 1000s of files / subdirectories in that new empty one and Calibre won't scan them. So when getting a new device with maybe 32G to 1000 G SD card, first create the empty top level directories and then connect to Calibre before adding the content. |
Advert | |
|
01-25-2022, 12:26 PM | #6 |
Zealot
Posts: 111
Karma: 196896
Join Date: Oct 2021
Location: Germany
Device: Tolino Vision 5, Tolino Tab 8"
|
Yup, so much for theory (thanks nonetheless!). Only, if installing software on a device like a tablet, one doesn’t often check (or care) what folders it creates/uses.
In my case, I experimented with several dictionaries, KOReader, Librera, ColorDict and GoldenDict on my Android 4.4.4 Tolino Tab 8", to find which would work best with KOReader and Librera. So I still think some restriction to device folders scanned might be useful. Or, as I proposed in the bug report below, an initial selection by the user before the scan starts. I feel that—for inital scans—a restriction to the "list of folders on the device to which to send e-books" might be in order, to avoid scanning the whole device. After that, only scan what has been selected in "Change scanned folders" and don’t auto-activate each new folder detected. Thinking about it, that’s what I meant when saying "lock folders": Don’t auto-activate new ones. That should solve all these problems. For those who wish for "everything fully automated", maybe a setting like "Auto-activate new folders on device for scanning (Y/N)?" Related: https://bugs.launchpad.net/calibre/+bug/1943991 (Immense RAM usage due to scanning unneeded stuff; solved by manually editing mtp_devices.json.) Last edited by Moonbase59; 01-25-2022 at 12:52 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Refresh Device Library After Changing "Scanned Folders" | youngheart80 | Devices | 3 | 05-16-2014 09:30 AM |
what's the difference between "compiled" and "converted" folders? | Gregg Bell | Kindle Formats | 8 | 04-01-2014 12:45 AM |
SONY pocket edition: "Device locked" + "charge battery" obstacles? | hermes | Devices | 3 | 06-02-2011 03:32 AM |
No data in "In Library" and "On Device" columns after upgrade | ily426 | Library Management | 8 | 04-03-2011 02:53 PM |
How to change "Send to device" without folders? | Skydog | Calibre | 12 | 05-23-2010 12:13 PM |