Move common code to Queue::Downloader

This commit is contained in:
Alex Ling
2020-07-21 12:32:48 +00:00
parent ae7c72ab85
commit b75a838e14
3 changed files with 10 additions and 9 deletions

View File

@@ -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