EBook Columns

This version uses Leo's tip re. filename/modified date. Testing shows it's faster as we knew.

I tried this with my collection of ebooks - 2800 in author folders, using flatview (worked fine btw) which resulted in a 500kb cache file - by the time the cache reaches this size it's much slower but still faster than reading the data from the actual file with calibre.

Ebook Columns.js.txt (13.2 KB)

Terrific. Please advise when you make that the official version, the one updated by ScriptWizard.

As I'm sure you're aware, from a certain collection size a database could be more efficient because of the log(n) factor of indexed lookup vs. scanning the whole file. Depending on the implementation of the database issuing SELECT queries may also be more efficient than parsing text line.

But IMO for this application it's overkill.
Really thrilled that you made this, I think I'll start using it.

Wishing you a terrific rest of the week. : )

Does ScriptWizard still work?

I see it looking for updates every time I launch Opus, but haven't checked if it updates anything. : )

None of my scripts are using Script Wizard. I thought I had read in its thread that it no longer worked.

Good to know, thank you.

Using this version, and i get this delete dialog appear for every book that is scanned.
image

Also there's an error when fetching authors name, see image

Can you either send the file to me or, using epub-meta.exe with that file send a screenshot of the command line output it generates?

here are ss of metadata from calibre, have not got epub-meta.exe.


Not epub-meta.exe - I meant ebook-meta.exe - and you do have that - it's installed with Calibre and it's what the script uses to extract the metadata.

No files attached to your reply - they were ignored as they were .zip files - send unzipped as a private message please.

Both problems should be fixed with this: Ebook Columns.js.txt (13.3 KB)

sorry to report, but problem has not been resolved with that version.
image

You probably need to clear the cache file.

Yep. Jon’s right. Delete the cache file - /localappdata\EbookColumns\

yep that worked. Thanks for all the help and the great script. any chance of a viewer plugin for ebooks, lol.

1 Like

Well beyond my skill level. I don’t really see the point though. I cant imagine needing to preview an ebook. I know whats in it based on the author and title. :slight_smile:

  • 1.5.1 (22/6/20)

    • Added: Uses a cache file to store ebook metadata and uses that to populate the columns if possible. The cache location can be configured, and even turned off if required.
    • Fixed: Parsing of the metadata failed if other fields used a keyword like Author etc in their content.
    • Fixed: Added ALL to the delete command for the temporary file to override user preferences requiring a prompt for all deletes.
1 Like
  • 1.5.2 (4/8/20)
    • Fixed: Columns now work correctly in the rename dialog.
1 Like

A post was split to a new topic: Scripting: InitData vs ScriptInitData?