ppsfleet-deluge/deluge_ppsfleet/__init__.py

33 lines
1.1 KiB
Python

# -*- coding: utf-8 -*-
# Copyright (C) 2020 BlackSponge <blacksponge@tuta.io>
#
# Basic plugin template created by the Deluge Team.
#
# This file is part of PPSFleet and is licensed under GNU GPL 3.0, or later,
# with the additional special exception to link portions of this program with
# the OpenSSL library. See LICENSE for more details.
from deluge.plugins.init import PluginInitBase
class CorePlugin(PluginInitBase):
def __init__(self, plugin_name):
print(plugin_name)
from .core import Core as PluginClass
self._plugin_cls = PluginClass
super(CorePlugin, self).__init__(plugin_name)
class Gtk3UIPlugin(PluginInitBase):
def __init__(self, plugin_name):
from .gtk3ui import Gtk3UI as PluginClass
self._plugin_cls = PluginClass
super(Gtk3UIPlugin, self).__init__(plugin_name)
class WebUIPlugin(PluginInitBase):
def __init__(self, plugin_name):
print('WEB', plugin_name)
from .webui import WebUI as PluginClass
self._plugin_cls = PluginClass
super(WebUIPlugin, self).__init__(plugin_name)