From ae8c7b7024eab7a524e43acb45ead9c8f33e8a79 Mon Sep 17 00:00:00 2001 From: FrederikBaerentsen Date: Sat, 21 Jan 2023 12:29:40 +0100 Subject: [PATCH] testing fixes for special signs (eg & in url/path) --- main.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.py b/main.py index c32a0dd..582624a 100644 --- a/main.py +++ b/main.py @@ -16,6 +16,10 @@ import time from pathlib import Path from io import BytesIO +# for debugging +from pprint import pprint +#### + from opds import fromdir import config,extras @@ -187,6 +191,11 @@ def catalog(path=""): start_time = timeit.default_timer() #print(request.root_url) c = fromdir(request.root_url, request.url, config.CONTENT_BASE_DIR, path) + print("c: ") + pprint(vars(c)) + for x in c.entries: + pprint(vars(x)) + print("------") elapsed = timeit.default_timer() - start_time print("-----------------------------------------------------------------------------------------------------------------------") print("RENDERED IN: " + str(round(elapsed,2))+"s")