fix:need sort num
This commit is contained in:
parent
76308d13e5
commit
18c2bf26df
2
main.py
2
main.py
@ -160,11 +160,11 @@ class UpdateSource:
|
||||
self.subscribe_result,
|
||||
self.online_search_result,
|
||||
)
|
||||
urls_total = self.get_urls_len()
|
||||
channel_data_cache = copy.deepcopy(self.channel_data)
|
||||
ipv6_support = check_ipv6_support()
|
||||
open_sort = config.getboolean("Settings", "open_sort", fallback=True)
|
||||
if open_sort:
|
||||
urls_total = self.get_urls_len()
|
||||
self.total = self.get_urls_len(filter=True)
|
||||
print(f"Total urls: {urls_total}, need to sort: {self.total}")
|
||||
sort_callback = lambda: self.pbar_update(name="测速")
|
||||
|
@ -399,7 +399,7 @@ def remove_duplicates_from_tuple_list(tuple_list, seen, flag=None, force_str=Non
|
||||
info = item_first.partition("$")[2]
|
||||
if info and info.startswith(force_str):
|
||||
continue
|
||||
elif flag:
|
||||
if flag:
|
||||
matcher = re.search(flag, item_first)
|
||||
if matcher:
|
||||
part = matcher.group(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user