Fix naming issues of subconvertor

This commit is contained in:
Mirei 2022-10-22 18:38:26 +03:30
parent a02fdf629b
commit 19c4528c84

View File

@ -51,6 +51,10 @@ def eternity_convert(file, config, output, provider_file_enabled=True):
all_provider = subs_function.convert_sub(
"https://raw.githubusercontent.com/mahdibland/SSAggregator/master/Eternity", 'clash')
all_provider = "proxies:\n" + \
"\n".join(list(filter(lambda x: str(x).__contains__(
"<EFBFBD>") == False, all_provider[1:].split("\n"))))
# 创建并写入 provider
lines = re.split(r'\n+', all_provider)
proxy_all = []