diff options
| -rw-r--r-- | config/donmai.zsh | 1 | ||||
| -rw-r--r-- | config/moebooru.zsh | 1 | ||||
| -rw-r--r-- | config/sankakucomplex.zsh | 1 | ||||
| -rw-r--r-- | operators/inline_search_pools.zsh | 2 | ||||
| -rw-r--r-- | units/ib_meta.zsh | 4 |
5 files changed, 3 insertions, 6 deletions
diff --git a/config/donmai.zsh b/config/donmai.zsh index 76a07cf..24e3694 100644 --- a/config/donmai.zsh +++ b/config/donmai.zsh @@ -67,7 +67,6 @@ case "${ib_mode}" in ib_isource="source" ib_itags="tag_string" ib_idate="%Y-%m-%dT%X" - ib_ifilename="cut -d '/' -f 7" ib_url="${ib_url}/posts/" ;; (t) diff --git a/config/moebooru.zsh b/config/moebooru.zsh index da1e66f..f0c38df 100644 --- a/config/moebooru.zsh +++ b/config/moebooru.zsh @@ -60,7 +60,6 @@ case "${ib_mode}" in ib_imd5="md5" ib_isource="source" ib_itags="tags" - ib_ifilename="sed 's/\/${ib_name}.*\./\./' | cut -d '/' -f 5" ib_url="${ib_url}/post/show/" ;; (t) diff --git a/config/sankakucomplex.zsh b/config/sankakucomplex.zsh index bb8cc22..122a607 100644 --- a/config/sankakucomplex.zsh +++ b/config/sankakucomplex.zsh @@ -78,7 +78,6 @@ case "${ib_mode}" in ib_imd5="md5" ib_isource="deprecated" ib_itags="tags[].tagName" - ib_ifilename="cut -d '?' -f 1 | cut -d '/' -f 7" ib_url="${ib_url}/posts/" ;; (t) diff --git a/operators/inline_search_pools.zsh b/operators/inline_search_pools.zsh index 476dd9a..0a0e5d1 100644 --- a/operators/inline_search_pools.zsh +++ b/operators/inline_search_pools.zsh @@ -11,7 +11,7 @@ source "${units}/ib_date.zsh" if [[ -n "${ib_ispace}" ]] then - ib_pool="$(tr "${ib_ispace}" ' ' <<< "${ib_pool}")" + ib_pool="${ib_pool//${ib_ispace}/ }" fi if [[ ${#ib_pool} -gt 1024 ]] diff --git a/units/ib_meta.zsh b/units/ib_meta.zsh index b718c34..1d616cd 100644 --- a/units/ib_meta.zsh +++ b/units/ib_meta.zsh @@ -4,7 +4,7 @@ if [[ -n "${ib_file_url}" && "${ib_file_url}" != "null" ]] then - ib_type="$(eval ${ib_ifilename} <<< "${ib_file_url}" | cut -d '.' -f 2)" + ib_type="$(cut -d '?' -f 1 <<< "${ib_file_url##*.}")" if [[ -z "${ib_sample_url}" || "${ib_sample_url}" == "null" ]] then @@ -26,7 +26,7 @@ then if [[ -n "${ib_type}" ]] then - ib_type_text="$(tr '[:lower:]' '[:upper:]' <<< "${ib_type}")" + ib_type_text="${(U)ib_type}" fi case "${ib_type}" in |
