minutes="$(printf "%d:%02d" $(($length / 60)) $(($length % 60)) )"
- tee "$cache" <<VIDEOend
- <li id="$attrinfo" class="thumb">
- <button class="watchlink" name="${linkinfo}" formaction="?action=watch&i=${linkinfo}">
- <img src="$thumb" alt="Preview not yet available">
- </button>
- <h2><a href="?action=watch&i=${linkinfo}">${htmlinfo}</a></h2>
-
- <input type="checkbox" name="tagsel" value="${htmlinfo}">
- <span class="info property">${minutes}min</span>
- <span class="info property">${width}x${height}</span>
- $(printf %s "$tags" |sed -r 's:\|*([^|]+)\|*: <span class="info tag">\1</span>:g')
- </li>
+ { tr -d '\n' |tee "$cache"; } <<-VIDEOend
+ <li id="$attrinfo" class="thumb">
+ <button class="watchlink" name="${linkinfo}" formaction="?action=watch&i=${linkinfo}">
+ <img src="$thumb" width="212" height="162" alt="Preview not yet available">
+ </button>
+ <h2><a href="?action=watch&i=${linkinfo}">${htmlinfo}</a></h2>
+
+ <input type="checkbox" name="tagsel" value="${htmlinfo}">
+ <span class="info property">${minutes}min</span>
+ <span class="info property">${width}x${height}</span>
+ $(printf %s "$tags" |sed -r 's:\|*([^|]+)\|*: <span class="info tag">\1</span>:g')
+ </li>
VIDEOend
fi
}