mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
21 lines
493 B
Python
21 lines
493 B
Python
from app.db.systemconfig_oper import SystemConfigOper
|
|
from app.schemas.types import SystemConfigKey
|
|
|
|
|
|
class DownloaderHelper:
|
|
"""
|
|
下载器帮助类
|
|
"""
|
|
|
|
def __init__(self):
|
|
self.systemconfig = SystemConfigOper()
|
|
|
|
def get_downloaders(self) -> dict:
|
|
"""
|
|
获取下载器
|
|
"""
|
|
downloader_conf: dict = self.systemconfig.get(SystemConfigKey.Downloaders)
|
|
if not downloader_conf:
|
|
return {}
|
|
return downloader_conf
|