idiotbox

youtube scraping and interfaces: CGI, Gopher, CLI
Log | Files | Refs | README | LICENSE

commit 27348c9be02b66f48ce69adcb13c8a4503152c67
parent c7b623e1478c23e3ef56a60bfe8b59bc371f0cba
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon,  4 Feb 2019 21:55:18 +0100

fix <title> when not searching channel or user

+ minor style fix.

Diffstat:
Mmain.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main.c b/main.c @@ -218,7 +218,7 @@ render(void) "<title>Search: \""); xmlencode(search); OUT("\""); - if (nvideos) { + if (nvideos && (chan[0] || user[0])) { if (videos[0].channelid[0]) printf(" in %s", videos[0].channeltitle); else if (videos[0].userid[0]) @@ -324,7 +324,7 @@ render(void) OUT( "</a></span><br/>\n" - " <span class=\"channel\">"); + "\t\t<span class=\"channel\">"); OUT("<a title=\"Search in "); xmlencode(videos[i].channeltitle);