不太灵

This commit is contained in:
Harold
2026-04-23 18:50:52 +08:00
parent 004b656377
commit 3332a470ba
+3 -3
View File
@@ -241,12 +241,12 @@ class Spider(BaseSpider):
if kind == "other":
kind = self._normalize_drive_key(group_name)
counters[kind] = counters.get(kind, 0) + 1
line_name = f"{kind}#{counters[kind]}"
line_name = f"{kind}@{counters[kind]}"
entries.append((line_name, link))
entries.sort(
key=lambda pair: (
self.DRIVE_ORDER.get(pair[0].split("#")[0], 999),
int(pair[0].split("#")[1]),
self.DRIVE_ORDER.get(pair[0].split("@")[0], 999),
int(pair[0].split("@")[1]),
pair[0],
)
)