diff --git a/pixiv/pixiv.sh b/pixiv/pixiv.sh index 8515a01..e95b521 100644 --- a/pixiv/pixiv.sh +++ b/pixiv/pixiv.sh @@ -273,7 +273,7 @@ do maxViewCount=$likeCount maxViewCountPid=$pid fi - tag=`jq -r --arg pid $pid '.illust[$pid].tags.tags[].tag' $json_file|sed -e 's/^/\\#/g'|sed ':a;N;s/\n/ /;t a;'` + tag=`jq -r --arg pid $pid '.illust[$pid].tags.tags[].tag' $json_file|sed -e 's/^/\\#/g'|sed ':a;N;s/\n/ /;t a;'|sed 's/"/\\"/g'` tag=`bash -c "echo '$tag'|$rule"` echo -e "pageCount=$pageCount,original_url=$original_url,small_url=$small_url\n\ @@ -373,7 +373,7 @@ do sleep $sleepImage text="以上作品日榜排名分别是 #排名${start_rank}_${end_rank} #rank${start_rank}_${end_rank} ,点击作品可以查看pid/标题/画师/tag信息." else - text="#排名${start_rank}_${end_rank} #rank${start_rank}_${end_rank}作品上传失败,请联系管理员" + text="#排名${start_rank}_${end_rank} #rank${start_rank}_${end_rank} 作品上传失败,请联系管理员" fi Request "curl -v -d chat_id=$chat_id -d text=\"$text\" $baseApi/sendMessage"