Skip to content

Commit 5d290ea

Browse files
committed
Add print calls for debugging
1 parent 6922acf commit 5d290ea

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,12 @@
4444
libgen = LibgenFictionClient()
4545

4646
def search(query, max_results=10, timeout=60):
47+
print('CalibreLibgenStore:search:query = {}'.format(query))
48+
4749
libgen_results = libgen.search(query)
4850
for result in libgen_results.results[:min(max_results, len(libgen_results.results))]:
51+
print('CalibreLibgenStore:search:result.title = {}'.format(result.title))
52+
4953
s = SearchResult()
5054

5155
s.title = result.title
@@ -54,6 +58,9 @@ def search(query, max_results=10, timeout=60):
5458
s.language = result.language
5559

5660
for download in result.downloads:
61+
print('CalibreLibgenStore:search:result.download.url = {}'.format(
62+
download.url))
63+
5764
s.downloads[download.format] = download.url
5865

5966
s.formats = ', '.join(s.downloads.keys())

0 commit comments

Comments
 (0)