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
6cf82dc9
Commit
6cf82dc9
authored
Jan 09, 2017
by
OzzieIsaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Loading further items in calibrecompanion should now work (#79)
parent
9927a6cc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
50 deletions
+67
-50
feed.xml
cps/templates/feed.xml
+22
-11
web.py
cps/web.py
+45
-39
No files found.
cps/templates/feed.xml
View file @
6cf82dc9
...
...
@@ -2,7 +2,7 @@
<feed
xmlns=
"http://www.w3.org/2005/Atom"
>
<id>
urn:uuid:2853dacf-ed79-42f5-8e8a-a7bb3d1ae6a2
</id>
<link
rel=
"self"
href=
"{{
url_for('feed_index')
}}"
href=
"{{
request.script_root + request.full_path
}}"
type=
"application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"
/>
<link
rel=
"start"
href=
"{{url_for('feed_index')}}"
...
...
@@ -10,10 +10,21 @@
<link
rel=
"up"
href=
"{{url_for('feed_index')}}"
type=
"application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"
/>
<link
rel=
"first"
href=
"{{request.script_root + request.path}}"
type=
"application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"
/>
<link
rel=
"last"
href=
"{{request.script_root + request.path}}?offset={{ pagination.last_offset }}"
type=
"application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"
/>
{% if pagination.has_next %}
<link
rel=
"next"
title=
"{{_('Next')}}"
href=
"{{ next_url }}"
href=
"{{ request.script_root + request.path }}?offset={{ pagination.next_offset }}"
type=
"application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"
/>
{% endif %}
{% if pagination.has_prev %}
<link
rel=
"previous"
href=
"{{request.script_root + request.path}}?offset={{ pagination.previous_offset }}"
type=
"application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"
/>
{% endif %}
<link
rel=
"search"
...
...
@@ -60,25 +71,25 @@
{% for author in authors %}
<entry>
<title>
{{author.name}}
</title>
<id>
{{ url_for('feed_author',
name=author.name
) }}
</id>
<link
type=
"application/atom+xml;profile=opds-catalog;type=feed;kind=acquisition"
href=
"{{url_for('feed_author',
name=author.name
)}}"
/>
<link
type=
"application/atom+xml"
href=
"{{url_for('feed_author',
name=author.name
)}}"
rel=
"subsection"
/>
<id>
{{ url_for('feed_author',
id=author.id
) }}
</id>
<link
type=
"application/atom+xml;profile=opds-catalog;type=feed;kind=acquisition"
href=
"{{url_for('feed_author',
id=author.id
)}}"
/>
<link
type=
"application/atom+xml"
href=
"{{url_for('feed_author',
id=author.id
)}}"
rel=
"subsection"
/>
</entry>
{% endfor %}
{% for entry in categorys %}
<entry>
<title>
{{entry.name}}
</title>
<id>
{{ url_for('feed_category',
name=entry.name
) }}
</id>
<link
type=
"application/atom+xml;profile=opds-catalog;type=feed;kind=acquisition"
href=
"{{url_for('feed_category',
name=entry.name
)}}"
/>
<link
type=
"application/atom+xml"
href=
"{{url_for('feed_category',
name=entry.name
)}}"
rel=
"subsection"
/>
<id>
{{ url_for('feed_category',
id=entry.id
) }}
</id>
<link
type=
"application/atom+xml;profile=opds-catalog;type=feed;kind=acquisition"
href=
"{{url_for('feed_category',
id=entry.id
)}}"
/>
<link
type=
"application/atom+xml"
href=
"{{url_for('feed_category',
id=entry.id
)}}"
rel=
"subsection"
/>
</entry>
{% endfor %}
{% for entry in series %}
<entry>
<title>
{{entry.name}}
</title>
<id>
{{ url_for('feed_series',
name=entry.name
) }}
</id>
<link
type=
"application/atom+xml;profile=opds-catalog;type=feed;kind=acquisition"
href=
"{{url_for('feed_series',
name=entry.name
)}}"
/>
<link
type=
"application/atom+xml"
href=
"{{url_for('feed_series',
name=entry.name
)}}"
rel=
"subsection"
/>
<id>
{{ url_for('feed_series',
id=entry.id
) }}
</id>
<link
type=
"application/atom+xml;profile=opds-catalog;type=feed;kind=acquisition"
href=
"{{url_for('feed_series',
id=entry.id
)}}"
/>
<link
type=
"application/atom+xml"
href=
"{{url_for('feed_series',
id=entry.id
)}}"
rel=
"subsection"
/>
</entry>
{% endfor %}
</feed>
cps/web.py
View file @
6cf82dc9
This diff is collapsed.
Click to expand it.
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