Sha256: 30de621e5866f6a5e89b0630cdb84072c78e36e7b9e929b8df62f9e0ce28a076

Contents?: true

Size: 548 Bytes

Versions: 1

Compression:

Stored size: 548 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
saber-1.1.1 lib/saber/task/chd.rb