Update main.py

This commit is contained in:
Yu Steven authored and GitHub committed 2022-07-03 18:17:07 +08:00
1 parent c5b46b1c23
commit ca5fdd5104
1 file changed
+10 -5
+10 -5
View File
@@ -37,11 +37,16 @@ if __name__ == '__main__':
subscribe_links = config['sub']
directories, total = get_file_list()
data = parse(directories)
tfiles = len(data[current_date]) + len(subscribe_links)
print(str(tfiles) + " clash configs found")
processes=[]
filenames = list()
filenames = data[current_date]
try:
tfiles = len(data[current_date]) + len(subscribe_links)
processes=[]
filenames = list()
filenames = data[current_date]
except KeyError:
print("Failed: changfengoos/pub库里没有Clash配置文件可以嫖")
else:
print("Success: changfengoos/pub库里有" + str(tfiles) + "个Clash配置文件可以嫖")
processes=[]
try:
for i in subscribe_links: