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
55b54de6
Commit
55b54de6
authored
Dec 06, 2019
by
Michael Shavit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add simple get_download_url implementation to replace the backblaze-backed implementation
parent
53578671
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
kobo.py
cps/kobo.py
+3
-1
No files found.
cps/kobo.py
View file @
55b54de6
...
...
@@ -214,8 +214,10 @@ def get_metadata__v1(book_uuid):
]
return
jsonify
([
metadata
])
def
get_download_url_for_book
(
book
):
return
"{url_base}/download/{book_id}/kepub"
.
format
(
url_base
=
config
.
config_server_url
,
book_id
=
book
.
id
)
def
get_download_url_for_book_b2
(
book
):
# TODO: Research what formats Kobo will support over the sync protocol.
# For now let's just assume all books are converted to KEPUB.
data
=
(
...
...
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