youtube/gopher: add link to hq image thumbnail - frontends - front-ends for some sites (experiment)
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 634c895fbf8796d04bea2c0fef6615110c9ef951
DIR parent db05879864829ecfa84f66cedde69b549788d507
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 7 Mar 2023 19:27:21 +0100
youtube/gopher: add link to hq image thumbnail
Diffstat:
M youtube/gopher.c | 6 ++++++
1 file changed, 6 insertions(+), 0 deletions(-)
---
DIR diff --git a/youtube/gopher.c b/youtube/gopher.c
@@ -218,6 +218,12 @@ render_video(struct video_response *r)
printf("\t%s\t%s\t%s\r\n", "", host, port);
}
+ OUT("hThumbnail: https://i.ytimg.com/vi/");
+ OUTTEXT(r->id);
+ OUT("/hqdefault.jpg\tURL:https://i.ytimg.com/vi/");
+ OUTLINK(r->id);
+ printf("/hqdefault.jpg\t%s\t%s\r\n", host, port);
+
if (r->author[0]) {
OUT("1Channel: ");
OUTTEXT(r->author);