Activity log for bug #1945889

Date Who What changed Old value New value Message
2021-10-03 07:00:36 Florian Bach bug added bug
2021-10-03 07:04:36 Florian Bach description I've written a Calibre FileTypePlugin which automatically turns Adobe ACSM files into EPUB or PDF files upon import: https://www.mobileread.com/forums/showthread.php?t=341975 When using this plugin by dragging-and-dropping an ACSM file into the Calibre window, it's working as intended. Same for when I click "Add Books" and then select the ACSM file (though I have to switch the filter from "Books" to "All Files") - works great, too. But when I set up the Calibre Auto-Add thing (where it monitors a folder) and click "Add all file types" (because Calibre doesn't know that ACSM files are books), then it *does* add the Book, my plugin does run and turns the file into a valid EPUB or PDF, but the resulting book metadata (Title, Author, Cover, ...) is still taken from the ACSM file (so, default cover, author "Unknown" and Title being the file name) and not from the EPUB or PDF which the FileTypePlugin outputs. Could this be fixed so that auto-added ACSM files will have correct metadata in Calibre? I am running Calibre 5.28 on Linux. I've written a Calibre FileTypePlugin which automatically turns Adobe ACSM files into EPUB or PDF files upon import: https://www.mobileread.com/forums/showthread.php?t=341975 When using this plugin by dragging-and-dropping an ACSM file into the Calibre window, it's working as intended. Same for when I click "Add Books" and then select the ACSM file (though I have to switch the filter from "Books" to "All Files") - works great, too. But when I set up the Calibre Auto-Add thing (where it monitors a folder) and click "Add all file types" (because Calibre doesn't know that ACSM files are books), then it *does* add the Book, my plugin does run and turns the file into a valid EPUB or PDF, but the resulting book metadata (Title, Author, Cover, ...) is still taken from the ACSM file (so, default cover, author "Unknown" and Title being the file name) and not from the EPUB or PDF which the FileTypePlugin outputs. So it looks like with the "manual" import Calibre reads the metadata after all FileTypePlugins are done (as it should), but with automatic import it reads the metadata immediately before the plugins run. Could this be fixed so that auto-added ACSM files will have correct metadata in Calibre? I am running Calibre 5.28 on Linux.
2021-10-03 08:04:44 Florian Bach description I've written a Calibre FileTypePlugin which automatically turns Adobe ACSM files into EPUB or PDF files upon import: https://www.mobileread.com/forums/showthread.php?t=341975 When using this plugin by dragging-and-dropping an ACSM file into the Calibre window, it's working as intended. Same for when I click "Add Books" and then select the ACSM file (though I have to switch the filter from "Books" to "All Files") - works great, too. But when I set up the Calibre Auto-Add thing (where it monitors a folder) and click "Add all file types" (because Calibre doesn't know that ACSM files are books), then it *does* add the Book, my plugin does run and turns the file into a valid EPUB or PDF, but the resulting book metadata (Title, Author, Cover, ...) is still taken from the ACSM file (so, default cover, author "Unknown" and Title being the file name) and not from the EPUB or PDF which the FileTypePlugin outputs. So it looks like with the "manual" import Calibre reads the metadata after all FileTypePlugins are done (as it should), but with automatic import it reads the metadata immediately before the plugins run. Could this be fixed so that auto-added ACSM files will have correct metadata in Calibre? I am running Calibre 5.28 on Linux. I've written a Calibre FileTypePlugin which automatically turns Adobe ACSM files into EPUB or PDF files upon import: https://www.mobileread.com/forums/showthread.php?t=341975 When using this plugin by dragging-and-dropping an ACSM file into the Calibre window, it's working as intended. Same for when I click "Add Books" and then select the ACSM file - works great, too. But when I set up the Calibre Auto-Add thing (where it monitors a folder) and click "Add all file types" (because Calibre doesn't know that ACSM files are books), then it *does* add the Book, my plugin does run and turns the file into a valid EPUB or PDF, but the resulting book metadata (Title, Author, Cover, ...) is still taken from the ACSM file (so, default cover, author "Unknown" and Title being the file name) and not from the EPUB or PDF which the FileTypePlugin outputs. So it looks like with the "manual" import Calibre reads the metadata after all FileTypePlugins are done (as it should), but with automatic import it reads the metadata immediately before the plugins run. Could this be fixed so that auto-added ACSM files will have correct metadata in Calibre? I am running Calibre 5.28 on Linux.
2021-10-03 08:05:20 Florian Bach description I've written a Calibre FileTypePlugin which automatically turns Adobe ACSM files into EPUB or PDF files upon import: https://www.mobileread.com/forums/showthread.php?t=341975 When using this plugin by dragging-and-dropping an ACSM file into the Calibre window, it's working as intended. Same for when I click "Add Books" and then select the ACSM file - works great, too. But when I set up the Calibre Auto-Add thing (where it monitors a folder) and click "Add all file types" (because Calibre doesn't know that ACSM files are books), then it *does* add the Book, my plugin does run and turns the file into a valid EPUB or PDF, but the resulting book metadata (Title, Author, Cover, ...) is still taken from the ACSM file (so, default cover, author "Unknown" and Title being the file name) and not from the EPUB or PDF which the FileTypePlugin outputs. So it looks like with the "manual" import Calibre reads the metadata after all FileTypePlugins are done (as it should), but with automatic import it reads the metadata immediately before the plugins run. Could this be fixed so that auto-added ACSM files will have correct metadata in Calibre? I am running Calibre 5.28 on Linux. I've written a Calibre FileTypePlugin which automatically turns Adobe ACSM files into EPUB or PDF files upon import: https://www.mobileread.com/forums/showthread.php?t=341975 When using this plugin by dragging-and-dropping an ACSM file into the Calibre window, it's working as intended. Same for when I click "Add Books" and then select the ACSM file - works great, too. But when I set up the Calibre Auto-Add thing (where it monitors a folder) and click "Add all file types" (because Calibre doesn't know that ACSM files are books), then it *does* add the Book, my plugin does run and turns the file into a valid EPUB or PDF, but the resulting book metadata (Title, Author, Cover, ...) is still taken from the ACSM file (so, default cover, author "Unknown" and Title being the file name) and not from the EPUB or PDF which the FileTypePlugin outputs. So it looks like with the "manual" import Calibre reads the metadata after all FileTypePlugins are done (as it should), but with automatic import it reads the metadata immediately before the plugins run. Could this be fixed so that auto-added ACSM files will have correct metadata in Calibre? Or is there some function I could call after the EPUB/PDF is ready to make it read the metadata from the file again? I am running Calibre 5.28 on Linux.
2021-10-05 03:00:46 Kovid Goyal calibre: status New Fix Released