1.作品标签双引号转义

master
panqihua 3 years ago
parent 814f3b8529
commit 55b78bbf9d
  1. 2
      pixiv/pixiv.sh

@ -273,7 +273,7 @@ do
maxViewCount=$likeCount maxViewCount=$likeCount
maxViewCountPid=$pid maxViewCountPid=$pid
fi 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"` tag=`bash -c "echo '$tag'|$rule"`
echo -e "pageCount=$pageCount,original_url=$original_url,small_url=$small_url\n\ echo -e "pageCount=$pageCount,original_url=$original_url,small_url=$small_url\n\

Loading…
Cancel
Save