tee "$cache" <<VIDEOend
<li class="thumb">
- <a class="watchlink" name="${linkinfo}" href="?action=watch&i=${linkinfo}">
+ <button class="watchlink" name="${linkinfo}" formaction="?action=watch&i=${linkinfo}">
<img src="$thumb" alt="Preview not yet available">
- </a>
- <h2>${htmlinfo}</h2>
+ </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>
selectionlist() {
cachebase="?o=${order}&s=${search//\//}&f=${filter//\//}"
cache="${_DATA}/cache/${cachebase}"
- if [ "$cache" -nt ${_DATA}/videos -a "$cache" -nt ${_DATA}/meta ]; then
+ if [ -s "$cache" -a "$cache" -nt ${_DATA}/videos -a "$cache" -nt ${_DATA}/meta ]; then
cat "$cache"
else
filterex="s;^([0-9]+\t){3}(.+)\n.*$;\2;p"