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
9303fce5
Commit
9303fce5
authored
Jan 17, 2017
by
Ethan Lin
Committed by
GitHub
Jan 17, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2 from janeczku/master
Bugfix search in opds feed (#79 again)
parents
9f1f678b
12c80800
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
json.txt
cps/templates/json.txt
+4
-4
osd.xml
cps/templates/osd.xml
+1
-1
No files found.
cps/templates/json.txt
View file @
9303fce5
...
...
@@ -16,7 +16,7 @@
{% endfor %}
],
"series": null,
"cover": "
/opds/cover/{{entry.id}}",
"cover": "
{{url_for('feed_get_cover', book_id=entry.id)}}",
"languages": [
{% for lang in entry.languages %}
"{{lang.lang_code}}"{% if not loop.last %},{% endif %}
...
...
@@ -34,9 +34,9 @@
"author_sort": "{{entry.author_sort}}",
"uuid": "{{entry.uuid}}",
"timestamp": "{{entry.timestamp}}",
"thumbnail": "
/opds/cover/{{entry.id}}",
"thumbnail": "
{{url_for('feed_get_cover', book_id=entry.id)}}",
"main_format": {
"{{entry.data[0].format|lower}}": "
/download/{{entry.id}}/{{entry.data[0].format|lower
}}"
"{{entry.data[0].format|lower}}": "
{{ url_for('get_opds_download_link', book_id=entry.id, format=entry.data[0].format|lower)
}}"
},
"rating":{% if entry.ratings.__len__() > 0 %} "{{entry.ratings[0].rating}}.0"{% else %}0.0{% endif %},
"authors": [
...
...
@@ -47,7 +47,7 @@
"other_formats": {
{% if entry.data.__len__() > 1 %}
{% for format in entry.data[1:] %}
"{{format.format|lower}}": "
/download/{{entry.id}}/{{format.format|lower
}}"{% if not loop.last %},{% endif %}
"{{format.format|lower}}": "
{{ url_for('get_opds_download_link', book_id=entry.id, format=format.format|lower)
}}"{% if not loop.last %},{% endif %}
{% endfor %}
{% endif %} },
"title_sort": "{{entry.sort}}"
...
...
cps/templates/osd.xml
View file @
9303fce5
...
...
@@ -8,7 +8,7 @@
<Url
type=
"text/html"
template=
"{{url_for('search')}}?query={searchTerms}"
/>
<Url
type=
"application/atom+xml"
template=
"{{url_for('feed_search')}}?query={searchTerms}"
/>
template=
"{{url_for('feed_
normal_
search')}}?query={searchTerms}"
/>
<SyndicationRight>
open
</SyndicationRight>
<Language>
de-DE
</Language>
<OutputEncoding>
UTF-8
</OutputEncoding>
...
...
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