module Saber module Task class CHD < Base desc "chd", "chd" def chd(o={}) require "saber/tracker/chd" t = Tracker["chd"].new begin t.login Saber.ui.say "Begin to watch." # mark all loaded. t.update_cache(true) while true t.add_torrents sleep Rc.chd.update_interval end rescue Errno::ETIMEDOUT, Mechanize::ResponseCodeError, SocketError sleep 60 retry end end end end end