This commit is contained in:
parent
cde3adcbe5
commit
fc8cbd9540
@ -83,9 +83,8 @@ def get_files(id):
|
|||||||
|
|
||||||
|
|
||||||
def search_ygg(query, multi):
|
def search_ygg(query, multi):
|
||||||
year = args.year or ""
|
|
||||||
ygg_params = {
|
ygg_params = {
|
||||||
"name": f"{query} {year}",
|
"name": query,
|
||||||
"description": "",
|
"description": "",
|
||||||
"file": "",
|
"file": "",
|
||||||
"uploader": "",
|
"uploader": "",
|
||||||
@ -118,6 +117,9 @@ def search_ygg(query, multi):
|
|||||||
if any(word.lower() in name for word in BLACKLIST_WORDS):
|
if any(word.lower() in name for word in BLACKLIST_WORDS):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if args.year and args.year not in name:
|
||||||
|
continue
|
||||||
|
|
||||||
if args.uploader and not any(
|
if args.uploader and not any(
|
||||||
uploader.lower() in name for uploader in args.uploader
|
uploader.lower() in name for uploader in args.uploader
|
||||||
):
|
):
|
||||||
@ -129,7 +131,7 @@ def search_ygg(query, multi):
|
|||||||
if get_files(id) > 1:
|
if get_files(id) > 1:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
print(f"{name} {year} {link}")
|
print(f"{name} {link}")
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user