fix:need sort num

This commit is contained in:
guorong.zheng 2024-11-04 10:34:58 +08:00
parent 76308d13e5
commit 18c2bf26df
2 changed files with 2 additions and 2 deletions

@ -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)