From be7791443a44ebfd1dcd3735ec5e26da4852df52 Mon Sep 17 00:00:00 2001 From: FrederikBaerentsen Date: Tue, 17 Jan 2023 15:00:37 +0100 Subject: [PATCH] Fixed path issue on linux --- opds/catalog.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/opds/catalog.py b/opds/catalog.py index 003683e..b0e966c 100644 --- a/opds/catalog.py +++ b/opds/catalog.py @@ -126,16 +126,16 @@ def fromdir(root_url, url, content_base_path, content_relative_path): print("--> LOADED 2 FILE") # try and get this as low as possible. for e in data: for key, value in e.items(): - print(key) + #print(key) searchArr.append(key) for i in searchArr: - print(i) + #print(i) if quote(f""+i) in c.url: conn = sqlite3.connect('app.db') - print(data) + #print(data) for e in data: for key, value in e.items(): - print(key) + #print(key) if key == i: query="SELECT * FROM COMICS where " for i in value: @@ -179,7 +179,7 @@ def fromdir(root_url, url, content_base_path, content_relative_path): sql = query #sql="SELECT * from COMICS where SERIES like '%" + i+ "%' or Title like '%" + i+ "%';" - print(sql) + #print(sql) s = conn.execute(sql) #list=[] for r in s: @@ -200,12 +200,12 @@ def fromdir(root_url, url, content_base_path, content_relative_path): links=[link3] ) ) - - + #print(c.title) return c + def mimetype(path): extension = path.split(".")[-1].lower() if extension == "pdf":