feat: Improved status display.
This commit is contained in:
+5
-5
@@ -2,12 +2,12 @@
|
||||
"theme": "auto",
|
||||
"token": "",
|
||||
"server_url": "",
|
||||
"server_scheme": "https",
|
||||
"server_scheme": "http",
|
||||
"server_port": "32400",
|
||||
"timeout": 9,
|
||||
"library_name": "",
|
||||
"sync_mode": "merge_local_primary",
|
||||
"local_path": "playlist",
|
||||
"sync_mode": "local_force",
|
||||
"local_path": "playlists",
|
||||
"path_rules": [],
|
||||
"path_mapping": {
|
||||
"mode": "SIMPLE",
|
||||
@@ -21,8 +21,8 @@
|
||||
},
|
||||
"schedule_mode": "DISABLED",
|
||||
"schedule_cron": "",
|
||||
"schedule_daily_time": "02:00",
|
||||
"schedule_daily_time": "00:00",
|
||||
"schedule_weekly_days": [0],
|
||||
"schedule_weekly_time": "03:00",
|
||||
"schedule_weekly_time": "00:00",
|
||||
"schedule_auto_watch": false
|
||||
}
|
||||
|
||||
+2
-1
@@ -120,7 +120,8 @@ class ServerConfig:
|
||||
}
|
||||
with open(CONFIG_PATH, "w", encoding="utf-8") as f:
|
||||
json.dump(config, f, indent=4, ensure_ascii=False)
|
||||
logger.info(f"Server config saved: {config}")
|
||||
logger.info(f"Server config saved.")
|
||||
logger.debug(f"Saved server config: {config}")
|
||||
|
||||
def set_url(self, url: str) -> None:
|
||||
self.url = url
|
||||
|
||||
Reference in New Issue
Block a user