mirror of
https://github.com/thorsten-gehrig/alexa-remote-control.git
synced 2024-11-23 01:09:02 +01:00
fixed alexa url
reffering https://github.com/thorsten-gehrig/alexa-remote-control/issues/166
This commit is contained in:
parent
8f86f40ee4
commit
7cd30fa4bd
@ -523,7 +523,7 @@ if [ -z "${REFRESH_TOKEN}" ] ; then
|
|||||||
# get first cookie and write redirection target into referer
|
# get first cookie and write redirection target into referer
|
||||||
#
|
#
|
||||||
${CURL} ${OPTS} -s -D "${TMP}/.alexa.header" -c ${COOKIE} -b ${COOKIE} -A "${BROWSER}" -H "Accept-Language: ${LANGUAGE}" -H "DNT: 1" -H "Connection: keep-alive" -H "Upgrade-Insecure-Requests: 1" -L\
|
${CURL} ${OPTS} -s -D "${TMP}/.alexa.header" -c ${COOKIE} -b ${COOKIE} -A "${BROWSER}" -H "Accept-Language: ${LANGUAGE}" -H "DNT: 1" -H "Connection: keep-alive" -H "Upgrade-Insecure-Requests: 1" -L\
|
||||||
https://alexa.${AMAZON} | grep "hidden" | sed 's/hidden/\n/g' | grep "value=\"" | sed -r 's/^.*name="([^"]+)".*value="([^"]+)".*/\1=\2\&/g' > "${TMP}/.alexa.postdata"
|
https://alexa.${AMAZON}/spa/index.html | grep "hidden" | sed 's/hidden/\n/g' | grep "value=\"" | sed -r 's/^.*name="([^"]+)".*value="([^"]+)".*/\1=\2\&/g' > "${TMP}/.alexa.postdata"
|
||||||
|
|
||||||
#
|
#
|
||||||
# login empty to generate session
|
# login empty to generate session
|
||||||
|
@ -393,7 +393,7 @@ rm -f ${COOKIE}
|
|||||||
# get first cookie and write redirection target into referer
|
# get first cookie and write redirection target into referer
|
||||||
#
|
#
|
||||||
${CURL} ${OPTS} -s -D "${TMP}/.alexa.header" -c ${COOKIE} -b ${COOKIE} -A "${BROWSER}" -H "Accept-Language: ${LANGUAGE}" -H "DNT: 1" -H "Connection: keep-alive" -H "Upgrade-Insecure-Requests: 1" -L\
|
${CURL} ${OPTS} -s -D "${TMP}/.alexa.header" -c ${COOKIE} -b ${COOKIE} -A "${BROWSER}" -H "Accept-Language: ${LANGUAGE}" -H "DNT: 1" -H "Connection: keep-alive" -H "Upgrade-Insecure-Requests: 1" -L\
|
||||||
https://alexa.${AMAZON} | grep "hidden" | sed 's/hidden/\n/g' | grep "value=\"" | sed -r 's/^.*name="([^"]+)".*value="([^"]+)".*/\1=\2\&/g' > "${TMP}/.alexa.postdata"
|
https://alexa.${AMAZON}/spa/index.html | grep "hidden" | sed 's/hidden/\n/g' | grep "value=\"" | sed -r 's/^.*name="([^"]+)".*value="([^"]+)".*/\1=\2\&/g' > "${TMP}/.alexa.postdata"
|
||||||
|
|
||||||
#
|
#
|
||||||
# login empty to generate session
|
# login empty to generate session
|
||||||
|
Loading…
Reference in New Issue
Block a user