View Single Post
Old 01-23-2024, 12:37 PM   #11
0x6f677548
Hugo Batista
0x6f677548 began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Jan 2024
Device: kobo clara hd
Quote:
Originally Posted by BetterRed View Post
Last edit to the index was 2024-01-21 at 13:18 (my time) by Kiwidude.

Observation: the following code is not in the __init_.py module as it is in every other plugin I've peeked into. AFAIK the plugin updater uses those variables to populate the list of gettable plugins in Preferences->Plugins. I suspect it expects to find them in __init__.py.

Code:
PLUGIN_VERSION = (1, 0, 0)
PLUGIN_MINIMUM_CALIBRE_VERSION = (6, 5, 0)
PLUGIN_AUTHOR = "0x6f677548 (Hugo Batista)"
PLUGIN_SUPPORTED_PLATFORMS = ["windows", "osx", "linux"]
PLUGIN_FILE_TYPES = set(["epub"])
PLUGIN_FILE_TYPE = "epub"
PLUGIN_NAME = "IntelliReading.com - Epub Metaguider"
PLUGIN_DESCRIPTION = "Converts epub files to a metaguided format, improving your focus and reading speed."
When they do show up in the Get Plugins list, how is the user expected to know which one is which if all three plugins have the same plugin_name… and plugin_description.

BR
that is being changed when instantiating the plugin itself. Example on MetaguidedEpubOutput:
Code:
class MetaguidedEpubOutput(EPUBOutput):
    """Allows calibre to convert any known source format to a metaguided epub file."""

    # pylint:disable=undefined-variable

    name = common.PLUGIN_NAME + " Output"
    description = (
        common.PLUGIN_DESCRIPTION
        + " -> Replaces Epub Output with additional metaguiding options."
    )
    supported_platforms = common.PLUGIN_SUPPORTED_PLATFORMS
    author = common.PLUGIN_AUTHOR
    version = common.PLUGIN_VERSION
    file_type = common.PLUGIN_FILE_TYPE
    minimum_calibre_version = common.PLUGIN_MINIMUM_CALIBRE_VERSION
I thought that was enough, as I have the idea I saw the same approach in some other plugins. Are you sure that needs to be changed?

thanks for the help
0x6f677548 is offline   Reply With Quote