Comments (11)
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.
Here you go!
debug.txt
from acsm-calibre-plugin.
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.
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.
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.
from acsm-calibre-plugin.
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.
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.
from acsm-calibre-plugin.
Can you confirm that this is now fixed in Calibre 6.12? Then I can close this issue.
from acsm-calibre-plugin.
from acsm-calibre-plugin.
Related Issues (20)
- TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' HOT 3
- Processing an ACSM file added via a plugin HOT 5
- ACSM file not converting to ePub
- ACSM Not Converted HOT 3
- [Suggestion] Add job queue in the bottom of Calibre HOT 1
- Calibre crash upon linking ADE account HOT 5
- Plugin cannot install/initialize due to `OSError: dlopen(libcrypto.dylib)` HOT 3
- [Suggestion] Calibre main window can be accessed when plugin is opened HOT 2
- Installation failed: Invalid plugin HOT 4
- Exception when installing plugin in Flatpak Calibre HOT 3
- The library libcrypto could not be found HOT 18
- Configuration via CLI possible? HOT 1
- ACSM won't process HOT 2
- ModuleNotFoundError: No module named 'libadobe' HOT 11
- ERROR: Unhandled exception: <b>InvalidPlugin</b> HOT 1
- Deauthorize HOT 1
- Handle Connection Errors HOT 1
- [question] How to import an acsm file? HOT 3
- DeACSM fails with exception "Running file type plugin failed" HOT 2
- Error installing ACSM Input plugin (AttributeError: module 'calibre_plugins.deacsm.prefs' has no attribute 'DeACSM_Prefs') HOT 4
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 acsm-calibre-plugin.