   list: (callback) ->
     @utorrent.call("list", (err, data) ->
         return callback(err, null) if err
-
-        # console.log(data)
         results = {
             torrents: []
         }

                eta: datum[10]
            }
            results.torrents.push(torrent)
        # console.log(results)
        return callback err, results
    )


    # Check if custom download-dir
    downloadDir = @getDownloadDirForTorrent(torrent)
    if downloadDir?
      options['download_dir'] = downloadDir.basePath
      options['path'] = downloadDir.subPath
    # Check for missing Torrent URL
    unless torrent.torrentUrl
      callback new Error("Missing Torrent URL field."), null
    else
      options['s'] = torrent.torrentUrl
      @utorrent.call('add-url', options, (err, result) =>
        # console.log("add-file", err, result)
        return callback err, result
      )

  getDownloadDirForTorrent: (torrent) ->
    downloadDirs = config.downloadDirs
    def = { # Default
        "basePath": 0,
        "subPath": ""
      }
    if downloadDirs
      downloadDir = downloadDirs[torrent.category]
      # console.log(typeof downloadDir, torrent.category)
      renderPathForTorrent = (torrent, template, defDir) ->
        title = torrent.title
        e = episode(title)
        # Check if it was properly parse
        if e.matches.length > 0
