This repository has been archived on 2025-12-14. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
ppsfleet-deluge/deluge_ppsfleet/__init__.py
2020-12-26 02:37:46 -05:00

32 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)