From e8ef09887f50ba1664b008a9022e91562800184c Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Fri, 8 Sep 2023 18:15:58 +0100 Subject: [PATCH] Add another video before removing from playlist. --- testing/api-test.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testing/api-test.sh b/testing/api-test.sh index 1f045253..d86a4472 100755 --- a/testing/api-test.sh +++ b/testing/api-test.sh @@ -132,6 +132,9 @@ curl "${CURLOPTS[@]}" "$HOST/playlists/$PLAYLIST_ID" || exit 1 # Add to Playlist Test curl "${CURLOPTS[@]}" $HOST/user/playlists/add -X POST -H "Content-Type: application/json" -H "Authorization: $AUTH_TOKEN" -d "$(jq -n --compact-output --arg videoId "BtN-goy9VOY" --arg playlistId "$PLAYLIST_ID" '{"videoId": $videoId, "playlistId": $playlistId}')" || exit 1 +# Add another video to Playlist Test +curl "${CURLOPTS[@]}" $HOST/user/playlists/add -X POST -H "Content-Type: application/json" -H "Authorization: $AUTH_TOKEN" -d "$(jq -n --compact-output --arg videoId "jNQXAC9IVRw" --arg playlistId "$PLAYLIST_ID" '{"videoId": $videoId, "playlistId": $playlistId}')" || exit 1 + # Remove from Playlist Test curl "${CURLOPTS[@]}" $HOST/user/playlists/remove -X POST -H "Content-Type: application/json" -H "Authorization: $AUTH_TOKEN" -d "$(jq -n --compact-output --arg index "0" --arg playlistId "$PLAYLIST_ID" '{"index": $index, "playlistId": $playlistId}')" || exit 1