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
34e9ef35
Commit
34e9ef35
authored
Sep 17, 2017
by
OzzieIsaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cosmetics
parent
a159bb0b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
143 additions
and
145 deletions
+143
-145
kthoom.js
cps/static/js/kthoom.js
+129
-134
unrar.js
cps/static/js/unrar.js
+3
-2
untar.js
cps/static/js/untar.js
+3
-2
unzip.js
cps/static/js/unzip.js
+3
-2
web.py
cps/web.py
+5
-5
No files found.
cps/static/js/kthoom.js
View file @
34e9ef35
This diff is collapsed.
Click to expand it.
cps/static/js/unrar.js
View file @
34e9ef35
...
@@ -8,10 +8,11 @@
...
@@ -8,10 +8,11 @@
*
*
* http://kthoom.googlecode.com/hg/docs/unrar.html
* http://kthoom.googlecode.com/hg/docs/unrar.html
*/
*/
/* global bitjs */
// This file expects to be invoked as a Worker (see onmessage below).
// This file expects to be invoked as a Worker (see onmessage below).
importScripts
(
'io.js'
);
importScripts
(
"io.js"
);
importScripts
(
'archive.js'
);
importScripts
(
"archive.js"
);
// Progress variables.
// Progress variables.
var
currentFilename
=
""
;
var
currentFilename
=
""
;
...
...
cps/static/js/untar.js
View file @
34e9ef35
...
@@ -7,10 +7,11 @@
...
@@ -7,10 +7,11 @@
*
*
* TAR format: http://www.gnu.org/software/automake/manual/tar/Standard.html
* TAR format: http://www.gnu.org/software/automake/manual/tar/Standard.html
*/
*/
/* global bitjs */
// This file expects to be invoked as a Worker (see onmessage below).
// This file expects to be invoked as a Worker (see onmessage below).
importScripts
(
'io.js'
);
importScripts
(
"io.js"
);
importScripts
(
'archive.js'
);
importScripts
(
"archive.js"
);
// Progress variables.
// Progress variables.
var
currentFilename
=
""
;
var
currentFilename
=
""
;
...
...
cps/static/js/unzip.js
View file @
34e9ef35
...
@@ -9,10 +9,11 @@
...
@@ -9,10 +9,11 @@
* ZIP format: http://www.pkware.com/documents/casestudies/APPNOTE.TXT
* ZIP format: http://www.pkware.com/documents/casestudies/APPNOTE.TXT
* DEFLATE format: http://tools.ietf.org/html/rfc1951
* DEFLATE format: http://tools.ietf.org/html/rfc1951
*/
*/
/* global bitjs */
// This file expects to be invoked as a Worker (see onmessage below).
// This file expects to be invoked as a Worker (see onmessage below).
importScripts
(
'io.js'
);
importScripts
(
"io.js"
);
importScripts
(
'archive.js'
);
importScripts
(
"archive.js"
);
// Progress variables.
// Progress variables.
var
currentFilename
=
""
;
var
currentFilename
=
""
;
...
...
cps/web.py
View file @
34e9ef35
...
@@ -1808,12 +1808,12 @@ def read_book(book_id, book_format):
...
@@ -1808,12 +1808,12 @@ def read_book(book_id, book_format):
elif
book_format
.
lower
()
==
"txt"
:
elif
book_format
.
lower
()
==
"txt"
:
return
render_title_template
(
'readtxt.html'
,
txtfile
=
book_id
,
title
=
_
(
u"Read a Book"
))
return
render_title_template
(
'readtxt.html'
,
txtfile
=
book_id
,
title
=
_
(
u"Read a Book"
))
else
:
else
:
for
f
orma
t
in
[
"cbr"
,
"cbt"
,
"cbz"
]:
for
f
ileex
t
in
[
"cbr"
,
"cbt"
,
"cbz"
]:
if
book_format
.
lower
()
==
f
orma
t
:
if
book_format
.
lower
()
==
f
ileex
t
:
all_name
=
str
(
book_id
)
+
"/"
+
book
.
data
[
0
]
.
name
+
"."
+
f
orma
t
all_name
=
str
(
book_id
)
+
"/"
+
book
.
data
[
0
]
.
name
+
"."
+
f
ileex
t
tmp_file
=
os
.
path
.
join
(
book_dir
,
book
.
data
[
0
]
.
name
)
+
"."
+
f
orma
t
tmp_file
=
os
.
path
.
join
(
book_dir
,
book
.
data
[
0
]
.
name
)
+
"."
+
f
ileex
t
if
not
os
.
path
.
exists
(
all_name
):
if
not
os
.
path
.
exists
(
all_name
):
cbr_file
=
os
.
path
.
join
(
config
.
config_calibre_dir
,
book
.
path
,
book
.
data
[
0
]
.
name
)
+
"."
+
f
orma
t
cbr_file
=
os
.
path
.
join
(
config
.
config_calibre_dir
,
book
.
path
,
book
.
data
[
0
]
.
name
)
+
"."
+
f
ileex
t
copyfile
(
cbr_file
,
tmp_file
)
copyfile
(
cbr_file
,
tmp_file
)
return
render_title_template
(
'readcbr.html'
,
comicfile
=
all_name
,
title
=
_
(
u"Read a Book"
))
return
render_title_template
(
'readcbr.html'
,
comicfile
=
all_name
,
title
=
_
(
u"Read a Book"
))
...
...
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