Git Product home page Git Product logo

Comments (11)

Leseratte10 avatar Leseratte10 commented on May 14, 2024

I've just tested that and it's working fine for me.

Do other (non-duplicate) books work for you?

Can you please post a debug log? Right-click the "Preferences" button, choose "Restart in debug mode", then import an ACSM and close Calibre, then post the debug log file that shows up.

from acsm-calibre-plugin.

Gwouigwoui avatar Gwouigwoui commented on May 14, 2024

Here you go!
debug.txt

from acsm-calibre-plugin.

Leseratte10 avatar Leseratte10 commented on May 14, 2024

Okay, the only error message I can see in that log file is this:

Traceback (most recent call last):
  File "calibre\gui2\auto_add.py", line 283, in do_add
FileNotFoundError: [WinError 2] Le fichier spécifié est introuvable: 'F:\\Livres à ajouter automatiquement\\l-enfant.acsm'

Now I don't speak french but that sounds like a "File not found" error from Calibre. No idea why that occurs, but it's most likely not caused by my plugin.

Are you adding the file using the "Add books" button or do you use Drag-and-Drop to add the file?

from acsm-calibre-plugin.

Gwouigwoui avatar Gwouigwoui commented on May 14, 2024

I'm using the watch folder. When I drop a file in there, apparently Calibre checks if there are possible duplicates and ask if I want to proceed if it finds there might be one. When it's an EPUB, no problem, the book appears in my library as expected, but when it's an ACSM the file is moved into its own folder and appears in the library as well, but without being processed by DeACSM, just an ACSM file.
Maybe Calibre moves it first so your plugin can't find it anymore in the watch folder? This would explain the error (FileNotFoundError).

from acsm-calibre-plugin.

Leseratte10 avatar Leseratte10 commented on May 14, 2024

Okay, when I A) use the auto-add folder, and B) I have the "Check for duplicates" option in the auto-add settings enabled, I can reproduce the error, though I'm not sure yet what causes it because the logging isn't working properly for some reason with auto-added books.

As a workaround you could disable the duplicate detection for auto-added books if you always want it to add duplicates. I'll take a look to see if I can fix this bug in my plugin or if it needs to be fixed in Calibre.

from acsm-calibre-plugin.

Gwouigwoui avatar Gwouigwoui commented on May 14, 2024

from acsm-calibre-plugin.

Leseratte10 avatar Leseratte10 commented on May 14, 2024

I took a closer look and this seems to be a bug in Calibre, not in my plugin. Looks like nobody has ever used my plugin with the auto-add folder and enabled duplicate detection.

I've reported the bug to the Calibre developers, hoping that they can fix that issue: https://bugs.launchpad.net/calibre/+bug/2003906

from acsm-calibre-plugin.

Leseratte10 avatar Leseratte10 commented on May 14, 2024

This bug should now be fixed in Calibre, if you set up a development environment you can already test it, otherwise you can wait until the next Calibre update.

from acsm-calibre-plugin.

Gwouigwoui avatar Gwouigwoui commented on May 14, 2024

from acsm-calibre-plugin.

Leseratte10 avatar Leseratte10 commented on May 14, 2024

Can you confirm that this is now fixed in Calibre 6.12? Then I can close this issue.

from acsm-calibre-plugin.

Gwouigwoui avatar Gwouigwoui commented on May 14, 2024

from acsm-calibre-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.