Compare commits

...

1 Commits

Author SHA1 Message Date
fluffy 39888fc079 Filter at the correct time 2021-04-26 23:49:50 -07:00
1 changed files with 2 additions and 2 deletions

View File

@ -169,9 +169,9 @@ if __name__ == "__main__":
seen_cats = set()
categories = args.categories
while categories:
for url in {cat for cat in categories if cat not in seen_cats}:
for url in categories:
found = mirror(url, args)
seen_cats.add(url)
if args.recurse:
print(f'Recursively fetching categories: {list(found)}')
categories = found
categories = (cat for cat in found if cat not in seen_cats)