mirror of
https://github.com/jxxghp/MoviePilot-Plugins.git
synced 2026-05-23 07:26:47 +00:00
- 优化插件目录结构和数据结构, 解耦API层和服务层 - 添加了一些Pydantic模型, 用于校验配置 - 支持独立的订阅链接配置 - 新增覆写代理组和出站代理操作 - 支持 smart 组和代理集合 - 代理组回环检测 - 使用异步调度器 - 显示规则更改日期 - 完善了对嵌套逻辑规则和子规则的配置和验证
18 lines
420 B
Python
18 lines
420 B
Python
from typing import Optional, Literal
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
from .proxybase import ProxyBase
|
|
|
|
|
|
class SnellObfsOpts(BaseModel):
|
|
mode: Optional[Literal['http', 'tls']] = None
|
|
host: Optional[str] = None
|
|
|
|
|
|
class SnellProxy(ProxyBase):
|
|
type: Literal['snell'] = 'snell'
|
|
psk: str
|
|
version: Optional[Literal[1,2,3]] = 1
|
|
obfs_opts: Optional[SnellObfsOpts] = Field(None, alias='obfs-opts')
|