summaryrefslogtreecommitdiff
path: root/hib-dlagent
diff options
context:
space:
mode:
authorYaohan Chen <yaohan.chen@gmail.com>2015-04-16 20:37:15 -0400
committerYaohan Chen <yaohan.chen@gmail.com>2015-04-16 20:37:15 -0400
commit13a1153d52347b769c71cdf0fdec37d91cc602af (patch)
treec9cdce75d8d43415364e36eff2c36920481db20c /hib-dlagent
parent3b9be87188dc5dc1f1fcbe8e9a73d9f74546a050 (diff)
downloadhib-dlagent-13a1153d52347b769c71cdf0fdec37d91cc602af.tar.gz
hib-dlagent-13a1153d52347b769c71cdf0fdec37d91cc602af.zip
Use humblebundle-python to work with HIB API
Diffstat (limited to 'hib-dlagent')
-rwxr-xr-xhib-dlagent14
1 files changed, 2 insertions, 12 deletions
diff --git a/hib-dlagent b/hib-dlagent
index 2d293cd..55f7f17 100755
--- a/hib-dlagent
+++ b/hib-dlagent
@@ -19,9 +19,7 @@ STORAGE=
discover_url() {
local LISTING_PAGE="$1"
# Running a new shell in order to split PHANTOM_JS_OPTIONS into multiple arguments
- PASSWORD="$PASSWORD" \
- sh -c "phantomjs --config='$CONFIG_PATH'/phantomjs-config.json $PHANTOM_JS_OPTIONS \
- '$SCRIPT_PATH'/discover-url.coffee '$LISTING_PAGE' '$FILE' '$USERNAME'"
+ PASSWORD="$PASSWORD" "$SCRIPT_PATH"/discover-url.py "$LISTING_PAGE" "$FILE" "$USERNAME"
}
usage() {
@@ -41,10 +39,8 @@ Options:
-s Print URL to stdout instead of downloading. Incompatible with -d
-u <user> Use user to login. Search account's files. If specified multiple
times, the last is used
- -S <dir> Directory where PhantomJS scripts are located.
+ -S <dir> Directory where helper scripts are located.
-c <dir> Directory where configuration files are located.
- -j <options> Additional options passed to PhantomJS
- -l Turn on logging
If you specify -u, then all of that account's bundles are searched. If a key is
associated with a HIB account then you must use -u/-p, since that key only works
@@ -134,12 +130,6 @@ main() {
c)
CONFIG_PATH="$OPTARG"
;;
- j)
- PHANTOM_JS_OPTIONS="$OPTARG"
- ;;
- l)
- export LOG=1
- ;;
esac
done