$(eval var x="http://ac1011.hopto.org:4095/data/songlist.json?search=$(querystring $(1))",y="$(2)",a=($(urlfetch json http://ac1011.hopto.org:4095/data/songlist.json?search=$(querystring))),r=a.songlist,b=[],c="歌手:",d="歌名:",e="lid:",f="sid:",g=" ";if(y=="1"){x}else if(y!="null"){"Error!"}else{for(i=0;i<r.length-1;i++){b.push(i+1+"."+c+r[i].artist+g+d+r[i].title+g+e+r[i].list_id+g+f+r[i].song_id+g);b.length>0?b.join(' ').slice(0,400):'Error!!';}})
how output $(querystring $(1)) to %20, if $(1) have space?
e.g
input:precious%20you
output:precious%2520you
but i want precious%20you
input:precious you
output:precious
are you kidding me?
second,why i can’t send % & with $(querystring)?,that cause i can’t set more parameter to send, i think $(querystring) should more flexible to decide whether symbol need encode or not.
I set up two commands below, !songsearch and _songsearch which accept all the input parameters you mentioned in these other two topics. Copy and paste these into chat: