diff --git a/e2e/e2e.sh b/e2e/e2e.sh index b0ed652..25e0988 100755 --- a/e2e/e2e.sh +++ b/e2e/e2e.sh @@ -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 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 -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! ./../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 diff --git a/sdk/api.go b/sdk/api.go index 7795ac2..06ad84a 100644 --- a/sdk/api.go +++ b/sdk/api.go @@ -151,7 +151,7 @@ func (a *APIConfig) SetChannelStatus(channelID string, status string, failureRea "failure_reason": {failureReason}, } if transferState != nil { - params.Add("transferred", strconv.Itoa(*transferState)) + params.Add("transfer_state", strconv.Itoa(*transferState)) } res, _ := http.PostForm(endpoint, params) defer res.Body.Close()