Upgrade to Crystal 0.35.1

This commit is contained in:
Alex Ling
2020-12-06 06:50:27 +00:00
parent b2dc44a919
commit 455315a362
11 changed files with 46 additions and 43 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
require "./api"
require "zip"
require "compress/zip"
module MangaDex
class PageJob
property success = false
property url : String
property filename : String
property writer : Zip::Writer
property writer : Compress::Zip::Writer
property tries_remaning : Int32
def initialize(@url, @filename, @writer, @tries_remaning)
@@ -69,7 +69,7 @@ module MangaDex
# Find the number of digits needed to store the number of pages
len = Math.log10(chapter.pages.size).to_i + 1
writer = Zip::Writer.new zip_path
writer = Compress::Zip::Writer.new zip_path
# Create a buffered channel. It works as an FIFO queue
channel = Channel(PageJob).new chapter.pages.size
spawn do