mirror of
https://github.com/hkalexling/Mango.git
synced 2026-03-20 00:00:48 -04:00
Move common code to Queue::Downloader
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
require "sqlite3"
|
||||
require "./util/*"
|
||||
|
||||
class Queue
|
||||
class Downloader
|
||||
property stopped = false
|
||||
@library_path : String = Config.current.library_path
|
||||
@downloading = false
|
||||
|
||||
def initialize
|
||||
@queue = Queue.default
|
||||
@queue << self
|
||||
end
|
||||
end
|
||||
|
||||
class PageJob
|
||||
|
||||
Reference in New Issue
Block a user