Fix / folder in pygg
All checks were successful
dl / lint (push) Successful in 1m19s
dl / docker (push) Successful in 46s

This commit is contained in:
Michel Roux 2023-06-30 18:59:21 +00:00
parent b8d386d005
commit c835aa3191

View File

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