]> git.plutz.net Git - serve0/blobdiff - pages/list.sh
fix pulseaudio env variable, provide additional watch link
[serve0] / pages / list.sh
index 284b9185740897cde272e5cc4776dbc3c9c7d15e..337676e7c1d56b531ee9045876562818fc623388 100755 (executable)
@@ -78,10 +78,10 @@ _printVideo(){
 
     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>
@@ -140,4 +140,6 @@ thumblist() {
   done
 }
 
-pagecount="$(( $(selectionlist | wc -l) / $pagesize + 1 ))"
+pagecount() {
+  printf "$(( $(selectionlist | wc -l) / $pagesize + 1 ))"
+}