Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
e16c0cae
Commit
e16c0cae
authored
Oct 10, 2020
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix opds search
parent
52489a48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
db.py
cps/db.py
+1
-3
opds.py
cps/opds.py
+1
-1
No files found.
cps/db.py
View file @
e16c0cae
...
...
@@ -687,9 +687,7 @@ class CalibreDB():
limit_all
=
result_count
ub
.
store_ids
(
result
)
return
result
[
offset
:
limit_all
],
result_count
,
pagination
,
return
result
[
offset
:
limit_all
],
result_count
,
pagination
# Creates for all stored languages a translated speaking name in the array for the UI
def
speaking_language
(
self
,
languages
=
None
):
...
...
cps/opds.py
View file @
e16c0cae
...
...
@@ -408,7 +408,7 @@ def get_metadata_calibre_companion(uuid, library):
def
feed_search
(
term
):
if
term
:
entries
,
__
=
calibre_db
.
get_search_results
(
term
)
entries
,
__
,
___
=
calibre_db
.
get_search_results
(
term
)
entriescount
=
len
(
entries
)
if
len
(
entries
)
>
0
else
1
pagination
=
Pagination
(
1
,
entriescount
,
entriescount
)
return
render_xml_template
(
'feed.xml'
,
searchterm
=
term
,
entries
=
entries
,
pagination
=
pagination
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment