COLORFUL UPDATE
Make output more and more and more colorful! Change file structure and README.md
This commit is contained in:
@@ -1,18 +1,16 @@
|
||||
"""集合设置参数"""
|
||||
|
||||
import os
|
||||
from modules.utils.clear_screen import clear
|
||||
from modules.utils.clear_screen import cls_stay
|
||||
from modules.utils.inputs import rinput, cinput
|
||||
from modules.functions.save_load_settings import save_settings
|
||||
from modules.functions.settings.save_load_settings import save_settings
|
||||
|
||||
|
||||
def settings_menu(self):
|
||||
"""设置菜单主循环"""
|
||||
while True:
|
||||
clear()
|
||||
print(f"[NeteaseMusicLyricDownloader] {self.version}\n"
|
||||
"[设置菜单]\n"
|
||||
"[0] 返回上级\n[1] 歌曲保存路径\n[2] 清空输出文件夹内的内容\n[3] 歌词文件保存格式\n[4] 部分动态效果\n"
|
||||
cls_stay(self, "[设置菜单]")
|
||||
print("[0] 返回上级\n[1] 歌曲保存路径\n[2] 清空输出文件夹内的内容\n[3] 歌词文件保存格式\n[4] 部分动态效果\n"
|
||||
"[s] 将设置保存到文件")
|
||||
r = rinput("请选择:")
|
||||
if r == "0":
|
||||
@@ -33,10 +31,8 @@ def settings_menu(self):
|
||||
|
||||
def __remove_output_files(self):
|
||||
while True:
|
||||
clear()
|
||||
print(f"[NeteaseMusicLyricDownloader] {self.version}\n"
|
||||
"[设置菜单 - 删除文件]\n"
|
||||
"[0] 返回上级\n[1] 清除歌词文件\n[2] 清除歌曲文件\n[a] 清除所有文件")
|
||||
cls_stay(self, "[设置菜单 - 删除文件]")
|
||||
print("[0] 返回上级\n[1] 清除歌词文件\n[2] 清除歌曲文件\n[a] 清除所有文件")
|
||||
r = rinput("请选择:") # 选择清除的文件格式
|
||||
if r == "0":
|
||||
return
|
||||
@@ -74,7 +70,7 @@ def __remove_output_files(self):
|
||||
|
||||
|
||||
def __set_lyric_path(self):
|
||||
clear()
|
||||
cls_stay(self, "[设置菜单 - 保存路径]")
|
||||
print("允许使用相对路径和绝对路径,默认为\"./out/\"\n请*不要*使用反斜杠来确保通用性\n"
|
||||
"当前值:%s\n请输入新的歌词保存路径:" % self.settings.lyric_path)
|
||||
r = cinput()
|
||||
@@ -93,6 +89,7 @@ def __set_lyric_path(self):
|
||||
if not os.path.exists(path):
|
||||
os.mkdir(path)
|
||||
self.settings.lyric_path = r
|
||||
save_settings(self.settings)
|
||||
input("设置成功!\n按回车继续...")
|
||||
return
|
||||
|
||||
@@ -100,6 +97,3 @@ def __set_lyric_path(self):
|
||||
def __set_lyric_format(self):
|
||||
pass
|
||||
|
||||
|
||||
def __save_settings(self):
|
||||
return save_settings(self.settings)
|
||||
|
Reference in New Issue
Block a user