testing fixes for special signs (eg & in url/path)
This commit is contained in:
parent
892bfc21bd
commit
ae8c7b7024
9
main.py
9
main.py
@ -16,6 +16,10 @@ import time
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
|
||||||
|
# for debugging
|
||||||
|
from pprint import pprint
|
||||||
|
####
|
||||||
|
|
||||||
from opds import fromdir
|
from opds import fromdir
|
||||||
import config,extras
|
import config,extras
|
||||||
|
|
||||||
@ -187,6 +191,11 @@ def catalog(path=""):
|
|||||||
start_time = timeit.default_timer()
|
start_time = timeit.default_timer()
|
||||||
#print(request.root_url)
|
#print(request.root_url)
|
||||||
c = fromdir(request.root_url, request.url, config.CONTENT_BASE_DIR, path)
|
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
|
elapsed = timeit.default_timer() - start_time
|
||||||
print("-----------------------------------------------------------------------------------------------------------------------")
|
print("-----------------------------------------------------------------------------------------------------------------------")
|
||||||
print("RENDERED IN: " + str(round(elapsed,2))+"s")
|
print("RENDERED IN: " + str(round(elapsed,2))+"s")
|
||||||
|
Loading…
Reference in New Issue
Block a user