-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sh
executable file
·28 lines (23 loc) · 1012 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
set -e
testvid="https://www.youtube.com/watch?v=RBqm1svadxg"
source testfuns
post /tracks/add/youtube-dl "{ \"url\": \"$testvid\", \"path\": \"lol/foo\" }"
# post /archive '[{ "type": "track", "trackPath": "lol/foo/the smash community-RBqm1svadxg.mp3" }]'
# post /archive '[{ "type": "track", "trackPath": "lol/foo/the smash community-RBqm1svadxg.mp3" }]'
#
# post /archive \
# '[{ "type": "track", "trackPath": "lol/foo/the smash community-RBqm1svadxg.mp3" }, { "type": "transcode", "trackId": "963fe7ffee22e9f40bbbf5930bc7419ff5780076", "transParams": { "format": "mp3", "bitrate": { "type": "vbr", "value": 2 } } }]'
#
# get /status
#
# get /playlist
#
# put /playlist\?position\=start_-1 '["tsani/la tsani - nuntoi pa moi.mp3"]'
#
# get /playlist
#
# post /transcode \
# '{ "source": "lol/foo/the smash community-RBqm1svadxg.mp3", "params": { "bitrate": { "type": "vbr", "value": 2 }, "format": "mp3" } }'
#
# gets /transcode/963fe7ffee22e9f40bbbf5930bc7419ff5780076/mp3-vbr-2 > foo.mp3