idiotbox

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

commit f4055058d25993ae5f878e6a16dc98106e16cf56
parent 51a1ccc3de0fb893fa1eed128f65e7a89e93ae59
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat,  9 Mar 2019 14:53:24 +0100

gph: viewcount -> views, put duration after title

Diffstat:
Mgph.c | 13++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/gph.c b/gph.c @@ -196,22 +196,21 @@ render(void) } OUT("|server|port]\n"); } - + if (videos[i].duration[0]) { + OUT("Duration: " ); + OUTESCAPE(videos[i].duration); + OUT("\n"); + } if (videos[i].publishedat[0]) { OUT("Published: "); OUTESCAPE(videos[i].publishedat); OUT("\n"); } if (videos[i].viewcount[0]) { - OUT("Viewcount: "); + OUT("Views: "); OUTESCAPE(videos[i].viewcount); OUT("\n"); } - if (videos[i].duration[0]) { - OUT("Duration: " ); - OUTESCAPE(videos[i].duration); - OUT("\n"); - } OUT("\n\n"); }