From 13a1153d52347b769c71cdf0fdec37d91cc602af Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Thu, 16 Apr 2015 20:37:15 -0400 Subject: Use humblebundle-python to work with HIB API --- hib-dlagent | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'hib-dlagent') 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 Use user to login. Search account's files. If specified multiple times, the last is used - -S Directory where PhantomJS scripts are located. + -S Directory where helper scripts are located. -c Directory where configuration files are located. - -j 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 -- cgit v1.2.3-70-g09d2