FIx any
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2023-03-23 00:24:28 +01:00
parent 80bb5f4292
commit fdae027c01

View File

@ -157,14 +157,14 @@ def search_ygg(query, multi, full):
if int(downloads) < args.downloads:
continue
if any(word.lower() in name for word in args.blacklist):
if any(word and word.lower() in name for word in args.blacklist):
continue
if args.year and str(args.year) not in name:
continue
if args.uploader and not any(
uploader.lower() in name for uploader in args.uploader
uploader and uploader.lower() in name for uploader in args.uploader
):
continue