Skip to content

Commit

Permalink
new download URL format
Browse files Browse the repository at this point in the history
  • Loading branch information
tjluoma committed Mar 8, 2019
1 parent 5913805 commit 8794b91
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions di-handbrake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ then
NAME="$NAME (beta releases)"
BETA='yes'

URL=$(curl -A "$UA_CURL" -sfL "http://handbrake.fr/nightly.php" \
URL=$(curl -A "$UA_CURL" -sfL "https://handbrake.fr/nightly.php" \
| fgrep -i '.dmg' \
| tr '"|\047' '\012' \
| awk -F'^' '/https/{print $1}' \
Expand Down Expand Up @@ -67,7 +67,11 @@ else
# "Sparkle" will always come before "url" because of "sort"
LATEST_VERSION="$INFO[1]"
LATEST_BUILD="$INFO[2]"
URL=$(echo "$INFO[3]" | sed 's#\&#\&#g')

# URL=$(echo "$INFO[3]" | sed 's#\&#\&#g')
# https://download.handbrake.fr/releases/1.2.2/HandBrake-1.2.2.dmg"

URL="https://download.handbrake.fr/releases/$LATEST_VERSION/HandBrake-$LATEST_VERSION.dmg"

# If any of these are blank, we should not continue
if [ "$INFO" = "" -o "$LATEST_BUILD" = "" -o "$URL" = "" -o "$LATEST_VERSION" = "" ]
Expand Down

0 comments on commit 8794b91

Please sign in to comment.