diff --git a/commands/pygg.py b/commands/pygg.py index 6c7810c..69f5846 100755 --- a/commands/pygg.py +++ b/commands/pygg.py @@ -107,7 +107,8 @@ def check_files(id): jhtml = json.loads(pre.get_text()) html = bs4.BeautifulSoup(jhtml["html"], "html.parser") trs = html.select("tr") - return len(trs) == 1 and "mkv" in trs[0].get_text().lower() + filename = trs[0].get_text().lower() + return len(trs) == 1 and "mkv" in filename and "/" not in filename def search_ygg(query, multi, full):