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
64b1b830
Commit
64b1b830
authored
Nov 25, 2018
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #712
parent
8c93a7af
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
362 additions
and
81 deletions
+362
-81
helper.py
cps/helper.py
+4
-4
Calibre-Web TestSummary.html
test/Calibre-Web TestSummary.html
+358
-77
No files found.
cps/helper.py
View file @
64b1b830
...
...
@@ -123,13 +123,13 @@ def check_send_to_kindle(entry):
# no converter - only for mobi and pdf formats
for
ele
in
iter
(
entry
.
data
):
if
'MOBI'
in
ele
.
format
:
bookformats
.
append
({
'format'
:
'Mobi'
,
'text'
:
_
(
'Send
%(format)
s to Kindle'
,
format
=
'Mobi'
)})
bookformats
.
append
({
'format'
:
'Mobi'
,
'
convert'
:
0
,
'
text'
:
_
(
'Send
%(format)
s to Kindle'
,
format
=
'Mobi'
)})
if
'PDF'
in
ele
.
format
:
bookformats
.
append
({
'format'
:
'Pdf'
,
'text'
:
_
(
'Send
%(format)
s to Kindle'
,
format
=
'Pdf'
)})
bookformats
.
append
({
'format'
:
'Pdf'
,
'
convert'
:
0
,
'
text'
:
_
(
'Send
%(format)
s to Kindle'
,
format
=
'Pdf'
)})
if
'AZW'
in
ele
.
format
:
bookformats
.
append
({
'format'
:
'Azw'
,
'text'
:
_
(
'Send
%(format)
s to Kindle'
,
format
=
'Azw'
)})
bookformats
.
append
({
'format'
:
'Azw'
,
'
convert'
:
0
,
'
text'
:
_
(
'Send
%(format)
s to Kindle'
,
format
=
'Azw'
)})
if
'AZW3'
in
ele
.
format
:
bookformats
.
append
({
'format'
:
'Azw3'
,
'
text'
:
_
(
'Send
%(format)
s to Kk
indle'
,
format
=
'Azw3'
)})
bookformats
.
append
({
'format'
:
'Azw3'
,
'
convert'
:
0
,
'text'
:
_
(
'Send
%(format)
s to K
indle'
,
format
=
'Azw3'
)})
else
:
formats
=
list
()
for
ele
in
iter
(
entry
.
data
):
...
...
test/Calibre-Web TestSummary.html
View file @
64b1b830
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