From 19672604c4cd1e89ffb4637a5909bf6d08069884 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 18 Jun 2016 23:36:28 +0200 Subject: [PATCH] Update --- .gitignore | 1 + README.md | 3 +++ audiokeychain.sh | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4dcae76 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*mp3 diff --git a/README.md b/README.md index 60e9885..f4186be 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/audiokeychain.sh b/audiokeychain.sh index ea2e082..403bd1f 100755 --- a/audiokeychain.sh +++ b/audiokeychain.sh @@ -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"