增加软件管理实用程序与音频缓存机制修复
This commit is contained in:
@@ -4,6 +4,7 @@ import toml
|
||||
import typing
|
||||
from playsound import playsound
|
||||
import threading
|
||||
import hashlib
|
||||
import edge_tts as tts
|
||||
|
||||
class ConfigFile:
|
||||
@@ -60,4 +61,7 @@ def get_daystamp() -> int:
|
||||
if time_override != -1:
|
||||
return int(time_override)
|
||||
|
||||
return int(time.time() // (24 * 3600))
|
||||
return int(time.time() // (24 * 3600))
|
||||
|
||||
def get_md5(text):
|
||||
return hashlib.md5(text.encode('utf-8')).hexdigest()
|
||||
|
Reference in New Issue
Block a user