View Single Post
Old 04-05-2023, 08:06 PM   #8
estherflails
Member
estherflails began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jul 2021
Device: none
Quote:
Originally Posted by thiago.eec View Post
Basically, you need three mandatory changes:

1) Change the name on the __init__.py file, like you already did. Lets suppose it is now PLUGIN_NEW_NAME.
2) Then you need to rename the file "plugin-import-name-PLUGIN_NAME.txt" to "plugin-import-name-PLUGIN_NEW_NAME.txt".
3) Search and replace across all the files:
Search: from calibre_plugins.PLUGIN_NAME
Replace: from calibre_plugins.PLUGIN_NEW_NAME

Now, this is the basic, but I can't promise it will always work. One good example of what can go wrong is shortcut management. They might have the same unique name, and also the same trigger.

But with these three changes you will be able to duplicate most plugins.
Thank you!!! It works now! 🎉🎉 I did also need to replace the plugin name in every file, and also in a folder I missed earlier, but everything's good now.
Thank you everyone!
estherflails is offline   Reply With Quote