refactor: refactor sort_by_host

This commit is contained in:
acgnhik 2022-07-23 10:23:25 +08:00
parent becfd7919f
commit 51f4ff61d0

View File

@ -244,11 +244,11 @@ class Live:
return 1
if num == '08':
return 2
return int(num)
return 1000 + int(num)
elif re.search(r'cn-[a-z]+-[a-z]+', host):
return 1000
elif 'mcdn' in host:
return 2000
elif 'mcdn' in host:
return 5000
else:
return 10000