Skip to content

Commit

Permalink
fixed ssid parsing problem
Browse files Browse the repository at this point in the history
  • Loading branch information
newmanifold authored Dec 27, 2018
1 parent 543596f commit f1d50cf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rapidgator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -665,17 +665,17 @@ rapidgator_upload() {
elif [[ "$REQUEST_URL" =~ .*\"error\":.* ]]; then
ERROR_STRING=$( echo "$REQUEST_URL" | sed 's/.*"error":"\(.*\)".*/\1/' )
log_error "$ERROR_STRING"
else

local SCRIPT_TO_EVAL=$(echo "$REQUEST_URL" | sed 's/{"endpoint":"\(.*\)","uuid":"\(.*\)","sid":"\(.*\)".*/ENDPOINT="\1" QQUUID="\2" SESSION_ID="\3"/')

else
local SCRIPT_TO_EVAL=$(echo "$REQUEST_URL" | sed 's/{"endpoint":"\(.*\)","uuid":"\(.*\)".*/ENDPOINT="\1" QQUUID="\2"/')
#log_notice "$SCRIPT_TO_EVAL"

eval "$SCRIPT_TO_EVAL"

ENDPOINT=$( echo "$ENDPOINT" | sed 's/\(\\\/\)/\//g' )

#log_notice "$ENDPOINT"

SESSION_ID=$( echo "ENDPOINT" | sed 's/.*sid=\([^&]*\).*/\1/' )

#log_notice "$SESSION_ID"

#wait 180 || return

Expand Down

0 comments on commit f1d50cf

Please sign in to comment.