duration is not present for streaming, populate desc accordingly - gophercgis - Collection of gopher CGI/DCGI for geomyidae
 (HTM) hg clone https://bitbucket.org/iamleot/gophercgis
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) changeset eee05e52ffd9912b7b5e32b6557100b61a74aed6
 (DIR) parent a2bed7494efa4e3eda65471766530039cbd7ac3c
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Sun, 16 Sep 2018 00:11:23 
       
       duration is not present for streaming, populate desc accordingly
       
       Diffstat:
        youtube/search.dcgi |  6 +++++-
        1 files changed, 5 insertions(+), 1 deletions(-)
       ---
       diff -r a2bed7494efa -r eee05e52ffd9 youtube/search.dcgi
       --- a/youtube/search.dcgi       Sun Sep 16 00:03:20 2018 +0200
       +++ b/youtube/search.dcgi       Sun Sep 16 00:11:23 2018 +0200
       @@ -40,7 +40,11 @@
               sub(/<a href="\/(channel|user).* >/, "", author)
               sub(/<\/a>.*/, "", author)
        
       -       desc = sprintf("%s   (%s)   %s", title, duration, author)
       +       desc = title
       +       if (duration) {
       +               desc = desc "   (" duration ")"
       +       }
       +       desc = desc "   " author
               gsub("\\|", "\\|", desc)
               gsub("&#39;", "\047", desc)
               gsub("&amp;", "\\&", desc)