META_LENGTH META_WIDTH META_HEIGHT META_TAGS META_COMMENT META_NAME
'
-eval "$UNSET_VIDEO"
+eval "$UNSET_META"
read_meta() {
local name="$1" meta_db="$_DATA/.index/meta"
if [ $# -eq 0 ]; then
read -r META_LENGTH META_WIDTH META_HEIGHT META_TAGS META_COMMENT META_NAME
elif [ "$name" -a -f "$meta_db" -a -r "$meta_db" ]; then
- while read -r META_LENGTH META_WIDTH META_HEIGHT META_TAGS META_COMMENT META_NAME; do
- [ "${META_NAME%${CR}}" = "$name" ] && break
- done <"${meta_db}"
- [ "${META_NAME%${CR}}" = "$name" ] || eval "$UNSET_META"
+ read -r META_LENGTH META_WIDTH META_HEIGHT META_TAGS META_COMMENT META_NAME <<-EOF
+ $(grep -F " ${name}${CR}" "$meta_db")
+ EOF
fi
if [ "$META_NAME" ]; then
META_NAME="$(UNSTRING "${META_NAME%${CR}}")"