youtube/gopher: add 'h' type and "URL:" in single video view too - frontends - front-ends for some sites (experiment)
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit be809a17f1b8dc119d6bb2b1334fbb8c4a6fb283
 (DIR) parent 4f7c2ecc8388ca3536819df35133f85d865fb138
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sun, 28 May 2023 10:16:00 +0200
       
       youtube/gopher: add 'h' type and "URL:" in single video view too
       
       Diffstat:
         M youtube/gopher.c                    |       8 ++++++--
       
       1 file changed, 6 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/youtube/gopher.c b/youtube/gopher.c
       @@ -159,6 +159,7 @@ render_search(struct search_response *r)
        
                return 0;
        }
       +
        int
        render_video(struct video_response *r)
        {
       @@ -180,10 +181,13 @@ render_video(struct video_response *r)
                OUTTEXT(r->id);
                printf("\t%s\t%s\r\n", host, port);
        
       -        OUT("iURL:       ");
       +        OUT("hURL:       ");
                OUT("https://www.youtube.com/embed/");
                OUTTEXT(r->id);
       -        printf("\t%s\t%s\t%s\r\n", "", host, port);
       +        OUT("\tURL:");
       +        OUT("https://www.youtube.com/embed/");
       +        OUTTEXT(r->id);
       +        printf("\t%s\t%s\r\n", host, port);
        
                if (r->lengthseconds > 0) {
                        OUT("iLength:    ");