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
cea10d39
Commit
cea10d39
authored
Oct 16, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'comic_sort/comic_reader_sort'
parents
fe21d151
f6561456
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
kthoom.js
cps/static/js/kthoom.js
+3
-1
No files found.
cps/static/js/kthoom.js
View file @
cea10d39
...
...
@@ -180,13 +180,15 @@ function initProgressClick() {
function
loadFromArrayBuffer
(
ab
)
{
var
lastCompletion
=
0
;
const
collator
=
new
Intl
.
Collator
(
'en'
,
{
numeric
:
true
,
sensitivity
:
'base'
});
loadArchiveFormats
([
'rar'
,
'zip'
,
'tar'
],
function
()
{
// Open the file as an archive
archiveOpenFile
(
ab
,
function
(
archive
)
{
if
(
archive
)
{
totalImages
=
archive
.
entries
.
length
console
.
info
(
'Uncompressing '
+
archive
.
archive_type
+
' ...'
);
archive
.
entries
.
forEach
(
function
(
e
,
i
)
{
entries
=
archive
.
entries
.
sort
((
a
,
b
)
=>
collator
.
compare
(
a
.
name
,
b
.
name
));
entries
.
forEach
(
function
(
e
,
i
)
{
updateProgress
(
(
i
+
1
)
/
totalImages
*
100
);
if
(
e
.
is_file
)
{
e
.
readData
(
function
(
d
)
{
...
...
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