idiotbox

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

commit 9684eab8db7320b166221e443884d4f9b4ba7d5c
parent 27348c9be02b66f48ce69adcb13c8a4503152c67
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 15 Feb 2019 18:45:55 +0100

fix broken HTML when there is no publishdate

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

diff --git a/main.c b/main.c @@ -358,10 +358,9 @@ render(void) if (videos[i].publishedat[0]) { OUT(" <span class=\"publishedat\">Published: "); OUT(videos[i].publishedat); + OUT("</span><br/>\n"); } - OUT( - "</span><br/>\n" - " <span class=\"stats\">"); + OUT(" <span class=\"stats\">"); OUT(videos[i].viewcount); OUT( "</span><br/>\n"