From e495dda3c3a57a5e6b3dbb5f0f0103f7e0288716 Mon Sep 17 00:00:00 2001 From: xyz Date: Thu, 2 Sep 2021 11:50:27 -0700 Subject: curlncm, date use nano second --- .local/bin/curlncm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.local/bin/curlncm') diff --git a/.local/bin/curlncm b/.local/bin/curlncm index 0cd01933..faaf7018 100755 --- a/.local/bin/curlncm +++ b/.local/bin/curlncm @@ -8,10 +8,10 @@ key='653832636b656e683864696368656e38' url='/api/song/enhance/player/url' -request_id=$(date +'%s000')_$(seq -w 1 1000 | shuf -n1) +request_id=$(date +'%s%3N')_$(seq -w 1 1000 | shuf -n1) user_agent='User-Agent: Mozilla/5.0 (Linux; U; Android 9; zh-cn; Redmi Note 8 Build/PKQ1.190616.001) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/71.0.3578.141 Mobile Safari/537.36 XiaoMi/MiuiBrowser/12.5.22' -# need to improve to let a i r mutually exclusive +# need to improve to let a i r mutually exclusive? or find a way to chain their song ids and names # artist, song, djradio id while getopts a:i:n:r: opt; do case $opt in -- cgit v1.2.3-70-g09d2