fix: Clean up blank lines and enhance readability across multiple files

- Removed excessive blank lines from various markdown and Python files to improve readability and maintainability.
- Ensured consistent formatting across documentation and code files, contributing to overall project clarity.
- Updated logging mechanisms for better consistency and debugging support.
This commit is contained in:
Your Name committed 2025-12-27 17:10:19 +08:00
1 parent efaa3d3adc
commit ea7159355b
32 files changed
+360 -62

No files matched your search

+23
View File
@@ -376,6 +376,10 @@ def main():
live_room_match_threshold_var = tk.DoubleVar(
value=float(cfg.get("live_room_match_threshold", 0.8) or 0.8)
)
# 滑动速度(毫秒)
swipe_duration_ms_var = tk.IntVar(
value=int(cfg.get("swipe_duration_ms", 600) or 600)
)
# 推荐页养号:爱心/收藏/评论(基于图标模板匹配 + 坐标点击)
yg_enabled_var = tk.BooleanVar(value=bool(cfg.get("yanghao_enabled", True)))
@@ -994,6 +998,19 @@ def main():
).pack(side=LEFT)
ttk.Label(row4e, text="(阶段检测后等待福袋加载,默认7.0秒)").pack(side=LEFT, padx=(6, 0))
row4f = ttk.Frame(fudai_find_box)
row4f.pack(fill=X, padx=10, pady=(0, 8))
ttk.Label(row4f, text="滑动速度(毫秒):").pack(side=LEFT)
ttk.Spinbox(
row4f,
from_=100,
to=2000,
increment=50,
textvariable=swipe_duration_ms_var,
width=6,
).pack(side=LEFT)
ttk.Label(row4f, text="(滑动持续时间,默认600ms,值越大滑动越慢)").pack(side=LEFT, padx=(6, 0))
row4c = ttk.Frame(fudai_find_box)
row4c.pack(fill=X, padx=10, pady=(0, 10))
ttk.Label(row4c, text="直播间检测阈值:").pack(side=LEFT)
@@ -1234,6 +1251,9 @@ def main():
live_room_match_threshold_var.set(
float(cfg.get("live_room_match_threshold", 0.8) or 0.8)
)
swipe_duration_ms_var.set(
int(cfg.get("swipe_duration_ms", 600) or 600)
)
fudai_quiet_hours_enabled_var.set(
bool(cfg.get("fudai_quiet_hours_enabled", True))
)
@@ -1430,6 +1450,9 @@ def main():
cfg2["live_room_match_threshold"] = float(
live_room_match_threshold_var.get() or 0.8
)
cfg2["swipe_duration_ms"] = int(
swipe_duration_ms_var.get() or 600
)
cfg2["fudai_quiet_hours_enabled"] = bool(fudai_quiet_hours_enabled_var.get())
cfg2["fudai_quiet_start_hour"] = int(fudai_quiet_start_hour_var.get() or 0)
cfg2["fudai_quiet_end_hour"] = int(fudai_quiet_end_hour_var.get() or 0)