mirror of
https://github.com/Leseratte10/acsm-calibre-plugin.git
synced 2024-11-17 04:06:09 +06:00
79be3e3d87
Do not use this version yet unless you have a backup of your account data
40 lines
1.3 KiB
Python
40 lines
1.3 KiB
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Migration plugin from "DeACSM" to "ACSM Input"
|
|
# See README.md for details.
|
|
|
|
|
|
# Revision history:
|
|
# v0.0.20: First version of the migration plugin, released under the old name.
|
|
|
|
|
|
from calibre.customize import InterfaceActionBase # type: ignore
|
|
from calibre.customize import PluginInstallationType
|
|
|
|
|
|
class DeACSMMigrationPlugin(InterfaceActionBase):
|
|
name = "DeACSM"
|
|
description = "Extension for the ACSM Input plugin to migrate to a new plugin name"
|
|
supported_platforms = ['linux', 'osx', 'windows']
|
|
author = "Leseratte10"
|
|
minimum_calibre_version = (4, 0, 0)
|
|
version = (0, 0, 20)
|
|
|
|
can_be_disabled = False
|
|
# This plugin will be auto-loaded from the ACSM Input plugin. It doesn't make sense for the user
|
|
# to disable it. If necessary, the menu bar button can be removed through the Calibre settings.
|
|
|
|
type = "File type"
|
|
# Just so that the GUI extension shows up at the same place as the actual ACSM Input plugin.
|
|
|
|
installation_type = PluginInstallationType.EXTERNAL
|
|
# Mark this as user-installed so it shows up in the plugin list by default.
|
|
|
|
actual_plugin = "calibre_plugins.deacsm.migration:ActualMigrationPlugin"
|
|
|
|
def is_customizable(self):
|
|
return False
|
|
|
|
|