Fix year <> None
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2022-11-13 21:18:02 +01:00
parent 514c403e66
commit cde3adcbe5

View File

@ -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)