commit dd030bf24a134116314e8a8e6b1377b3eb053fff
parent 03dace86cf0f5b58f766c0f4e5b71dcb7ce7806d
Author: libredev <libredev@ircforever.org>
Date: Thu, 23 Feb 2023 17:43:46 +0530
output stream url
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/main.c b/main.c
@@ -189,7 +189,7 @@ source_print(struct source *s)
puts("</audio>");
puts("</div>");
- printf("<a href='%s'>%s</a>\n", s->url, s->server_name);
+ printf("<a class='title' href='%s'>%s</a>\n", s->url, s->server_name);
puts("<table>");
printf("<tr><td>Stream Description</td> <td>%s</td></tr>\n", s->server_description);
@@ -200,6 +200,7 @@ source_print(struct source *s)
printf("<tr><td>Listeners (current)</td><td>%s</td></tr>\n", s->listeners);
printf("<tr><td>Listeners (peak)</td> <td>%s</td></tr>\n", s->listener_peak);
printf("<tr><td>Genre</td> <td>%s</td></tr>\n", s->genre);
+ printf("<tr><td>Stream URL</td> <td><a href='%s'>%s</a></td></tr>\n", s->listenurl, s->listenurl);
puts("</table>");
puts("</div>");
diff --git a/style.css b/style.css
@@ -71,7 +71,7 @@ tr:nth-child(odd) {
margin-right: 1%;
}
-.stream a {
+.stream .title {
font-size: 20px;
font-weight: bold;
}