diff --git a/commands/pygg.py b/commands/pygg.py index f4ef658..051157e 100644 --- a/commands/pygg.py +++ b/commands/pygg.py @@ -83,8 +83,9 @@ def get_files(id): def search_ygg(query, multi): + year = args.year or "" ygg_params = { - "name": f"{query} {args.year}", + "name": f"{query} {year}", "description": "", "file": "", "uploader": "", @@ -128,7 +129,7 @@ def search_ygg(query, multi): if get_files(id) > 1: continue - print(f"{name} {args.year} {link}") + print(f"{name} {year} {link}") exit(0)