Restrict by downloads

This commit is contained in:
Michel Roux 2022-11-17 01:12:13 +01:00
parent 2d0edc0973
commit 9ede795bd8

View File

@ -112,11 +112,15 @@ def search_ygg(query, multi, full):
tds = tr.find_all("td") tds = tr.find_all("td")
size = tds[5].get_text() size = tds[5].get_text()
downloads = tds[6].get_text()
name = tds[1].get_text().lower().strip() name = tds[1].get_text().lower().strip()
if parse_size(size) > parse_size(f"{args.size}Go"): if parse_size(size) > parse_size(f"{args.size}Go"):
continue continue
if int(downloads) < 10:
continue
if any(word.lower() in name for word in BLACKLIST_WORDS): if any(word.lower() in name for word in BLACKLIST_WORDS):
continue continue