Quote:
Originally Posted by Terisa de morgan
I think a way to do it would be something like "tools", a FileTypePlugin plugin, with onPostImport = True (so you already has the database entry to add the file to the column), and you get the File path and the database id. Perhaps this could be a project for forgetting my sad bureaucratic work ;( I'll tell you if I get something, if you're interested.
|
Yes - please keep me informed, and feel free to bounce any thoughts around - either here or via PM. I must admit to not even knowing there were file type PI's until now.
One question though - is the
path_to_ebook that the onPostImport method gets the path to the file being added or the path to the file that's now in the library -- i.e is it
\downloads\ebooks\fred_1234A54.epub or is it
\library\author\book (428)\book - author.epub. My impression is that it's the latter.
I should download the source, not so I can run from it or modify it - merely to look at it. I'd rather look at it locally than via a browser.
BR