This commit is contained in:
Daniil Gentili 2016-06-18 23:36:28 +02:00
parent acec146126
commit 19672604c4
3 changed files with 6 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*mp3

View File

@ -9,4 +9,7 @@ Usage:
./audiokeychain.sh song.mp3
```
Todo:
Add submit to database option and show compatible keys
Created by [Daniil Gentili](https://daniil.it)

View File

@ -21,6 +21,8 @@ if ! echo "$uploadresult" | grep -q 'name'; then
exit 1
fi
while [ "$(curl -q "https://www.audiokeychain.com/progress/$bucket")" != "0" ];do :;done
result=$(curl -q "https://www.audiokeychain.com/queue/$bucket" -H 'Host: www.audiokeychain.com' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' --data 'errors=%5B%5D' -b $cookies | ./JSON.sh -s | sed '/^\["tracks",0\]\t/!d;s/^\["tracks",0\]\t//g;s/^"//g;s/"$//g;s/[<]\/tr[>].*/<\/tr>/g')
printf "$result"