From f17b86082689f56ab0f5676725c9767316ffb63f Mon Sep 17 00:00:00 2001 From: WorldObservationLog Date: Wed, 29 May 2024 17:11:01 +0800 Subject: [PATCH] fix: remove mitm config --- config.example.toml | 8 +------- src/config.py | 6 ------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/config.example.toml b/config.example.toml index 9ead593..57ad07e 100644 --- a/config.example.toml +++ b/config.example.toml @@ -96,10 +96,4 @@ afterDownloaded = "" # lyrics, cover, ratings(rtng) embedMetadata = ["title", "artist", "album", "album_artist", "composer", "genre", "created", "track", "tracknum", "disk", "lyrics", "cover", "copyright", - "record_company", "upc", "isrc","rtng"] - -[mitm] -# The host proxy server listens on -host = "127.0.0.1" -# The port proxy server listens on -port = "11080" \ No newline at end of file + "record_company", "upc", "isrc","rtng"] \ No newline at end of file diff --git a/src/config.py b/src/config.py index 22f67f5..c7ff877 100644 --- a/src/config.py +++ b/src/config.py @@ -46,18 +46,12 @@ class Metadata(BaseModel): embedMetadata: list[str] -class Mitm(BaseModel): - host: str - port: int - - class Config(BaseModel): region: Region devices: list[Device] m3u8Api: M3U8Api download: Download metadata: Metadata - mitm: Mitm @classmethod def load_from_config(cls, config_file: str = "config.toml"):