mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-05-18 23:16:44 +00:00
fix MyPluginManager
This commit is contained in:
@@ -14,12 +14,14 @@ from app.log import logger
|
||||
from app.schemas.types import SystemConfigKey
|
||||
from app.schemas import NotificationType
|
||||
from app.scheduler import Scheduler
|
||||
from app.helper.sites import SitesHelper
|
||||
|
||||
|
||||
class MyPluginManager(PluginManager):
|
||||
def __init__(self):
|
||||
# 不调用父类PluginManager的__init__方法
|
||||
pass
|
||||
self.siteshelper = SitesHelper()
|
||||
self.pluginhelper = PluginHelper()
|
||||
self.systemconfig = SystemConfigOper()
|
||||
|
||||
|
||||
class PluginAutoUpdate(_PluginBase):
|
||||
|
||||
@@ -9,12 +9,14 @@ from typing import Any, List, Dict, Tuple, Optional
|
||||
from app.log import logger
|
||||
from app.schemas.types import SystemConfigKey
|
||||
from app.utils.string import StringUtils
|
||||
from app.helper.sites import SitesHelper
|
||||
|
||||
|
||||
class MyPluginManager(PluginManager):
|
||||
def __init__(self):
|
||||
# 不调用父类PluginManager的__init__方法
|
||||
pass
|
||||
self.siteshelper = SitesHelper()
|
||||
self.pluginhelper = PluginHelper()
|
||||
self.systemconfig = SystemConfigOper()
|
||||
|
||||
|
||||
class PluginReInstall(_PluginBase):
|
||||
|
||||
Reference in New Issue
Block a user