summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhib-dlagent10
-rw-r--r--login.coffee12
2 files changed, 0 insertions, 22 deletions
diff --git a/hib-dlagent b/hib-dlagent
index 5c6a8a5..e67c86c 100755
--- a/hib-dlagent
+++ b/hib-dlagent
@@ -17,15 +17,6 @@ PASSWORD=
KEYS=()
STORAGE=
-login() {
- if [ -z "$PASSWORD" ]; then
- read -rsp 'Enter Humble account password: ' PASSWORD
- echo
- fi
- phantomjs --config="$CONFIG_PATH"/phantomjs-config.json --cookies-file="$COOKIE_JAR" \
- "$SCRIPT_PATH"/login.coffee "$LOGIN_PAGE" "$USERNAME" "$PASSWORD"
-}
-
discover_url() {
local LISTING_PAGE="$1"
phantomjs --config="$CONFIG_PATH"/phantomjs-config.json --cookies-file="$COOKIE_JAR" \
@@ -66,7 +57,6 @@ handle_download() {
COOKIE_JAR=$(mktemp)
if [ -n "$USERNAME" ]; then
- login
LISTING_PAGES+=("$HOME_PAGE")
fi
diff --git a/login.coffee b/login.coffee
deleted file mode 100644
index c129622..0000000
--- a/login.coffee
+++ /dev/null
@@ -1,12 +0,0 @@
-system = require 'system'
-[_, login_page, username, password] = system.args
-
-util = require './util'
-page = util.page
-
-page.open login_page, (status)->
- util.log "Opening login page: #{status}"
- util.handle_login_captcha ->
- phantom.exit()
- , username, password
-