Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 01-25-2022, 10:28 AM   #1
Moonbase59
Zealot
Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.
 
Moonbase59's Avatar
 
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?
Moonbase59 is offline   Reply With Quote
Old 01-25-2022, 11:07 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is online now   Reply With Quote
Advert
Old 01-25-2022, 11:12 AM   #3
Moonbase59
Zealot
Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.
 
Moonbase59's Avatar
 
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:
  • Connect device.
  • Wait endlessly for Calibre to check all new unwanted folders.
  • Go "Configure device" and untick all these folders.
  • Restart Calibre, wait again.
  • Desired result (only "Books" and "Download").

Last edited by Moonbase59; 01-25-2022 at 11:16 AM.
Moonbase59 is offline   Reply With Quote
Old 01-25-2022, 11:23 AM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by Moonbase59 View Post
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:
  • Connect device.
  • Wait endlessly for Calibre to check all new unwanted folders.
  • Go "Configure device" and untick all these folders.
  • Restart Calibre, wait again.
  • Desired result (only "Books" and "Download").
There are 2 files in the root that 'calibre' <hint> uses to 'log' previous scans for speedup. If you tamper with those, it has to start over.
I Shuffle my device (non-book) folder CONTENTS frequently with no rescan. Don't touch the path to known book folders.
theducks is offline   Reply With Quote
Old 01-25-2022, 11:46 AM   #5
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
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.
Quoth is offline   Reply With Quote
Advert
Old 01-25-2022, 12:26 PM   #6
Moonbase59
Zealot
Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.Moonbase59 can program the VCR without an owner's manual.
 
Moonbase59's Avatar
 
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.
Moonbase59 is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 01:19 AM.


MobileRead.com is a privately owned, operated and funded community.