Update curl call to show response

Update channel status call to pass the correct name of the parameter
This commit is contained in:
Mark Beamer Jr 2019-08-22 00:09:33 -04:00 committed by Niko Storni
parent 2c9c999c71
commit 1fb1077a94
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ videoStatus=$(mysql -u lbry -plbry -ss -D lbry -h "127.0.0.1" -P 15500 -e 'SELEC
# Reset status for tranfer test # Reset status for tranfer test
mysql -u lbry -plbry -ss -D lbry -h "127.0.0.1" -P 15500 -e "UPDATE youtube_data SET status = 'queued' WHERE id = 1" mysql -u lbry -plbry -ss -D lbry -h "127.0.0.1" -P 15500 -e "UPDATE youtube_data SET status = 'queued' WHERE id = 1"
# Trigger transfer api # Trigger transfer api
echo "curl -i -H 'Accept: application/json' -H 'Content-Type: application/json' http://localhost:15400/yt/transfer?auth_token=youtubertoken&address=n1Ygra2pyD6cpESv9GtPM9kDkr4bPeu1Dc" curl -i -H 'Accept: application/json' -H 'Content-Type: application/json' 'http://localhost:15400/yt/transfer?auth_token=youtubertoken&address=n1Ygra2pyD6cpESv9GtPM9kDkr4bPeu1Dc'
# Execute the transfer test! # Execute the transfer test!
./../bin/ytsync --channelID UCCyr5j8akeu9j4Q7urV0Lqw #Force channel intended...just in case. This channel lines up with the api container ./../bin/ytsync --channelID UCCyr5j8akeu9j4Q7urV0Lqw #Force channel intended...just in case. This channel lines up with the api container
# ALSO CHECK THAT VIDEO IS MARKED TRANSFERRED # ALSO CHECK THAT VIDEO IS MARKED TRANSFERRED

View file

@ -151,7 +151,7 @@ func (a *APIConfig) SetChannelStatus(channelID string, status string, failureRea
"failure_reason": {failureReason}, "failure_reason": {failureReason},
} }
if transferState != nil { if transferState != nil {
params.Add("transferred", strconv.Itoa(*transferState)) params.Add("transfer_state", strconv.Itoa(*transferState))
} }
res, _ := http.PostForm(endpoint, params) res, _ := http.PostForm(endpoint, params)
defer res.Body.Close() defer res.Body.Close()