From c835aa31919b867863890540646d982b5b11349b Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 30 Jun 2023 18:59:21 +0000 Subject: [PATCH] Fix / folder in pygg --- commands/pygg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):