Sorry, I'll try to explain myself better.
For getting original_path_to_file, I need the run method in my plugin to be called. So, because of this, now I have two file type plugins running on my file.
The first one makes its own process and returns a new file (with a new path). Now, the second one (my own) is called and it only stores the original path and returns the same path which has received.
In this situation, the book which is stored in calibre is not the modified one by the first plugin but the original one, as the second plugin does not receive as input the modified file but the original one, so each step loses the file returned by the previous plugin (or that is the effect I'm seeing).
|