commit 890f98e444ffdf03acc4ce616627be65728f98d2
parent 1e60194318f43070ea540f8846f4db45944f8226
Author: libredev <libredev@ircforever.org>
Date: Mon, 30 Jan 2023 21:00:57 +0530
clean up
Diffstat:
4 files changed, 19 insertions(+), 41 deletions(-)
diff --git a/comment.html b/comment.html
@@ -2,8 +2,7 @@
<h2>Add a comment</h2>
<form>
<fieldset>
- <p><b>
- NOTE: By commenting, you agree to release the comment under
+ <p><b>NOTE: By commenting, you agree to release the comment under
<a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0</a>.
</b></p>
<label for="name">Name (optional):</label><br>
diff --git a/footer.html b/footer.html
@@ -1,10 +1,4 @@
-
-<p class="footer">
- Except where otherwise noted, content on this site and the source code are
- released under the <br>
- <a href="https://creativecommons.org/publicdomain/zero/1.0/">
- CC0 1.0 Public Domain Dedication "No Rights Reserved"
- </a>
+<p class="footer">Except where otherwise noted, content on this site and the source code are released under the<br>
+<a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0 Public Domain Dedication "No Rights Reserved"</a>
</p>
-
</html>
diff --git a/header.html b/header.html
@@ -4,7 +4,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title> IRCNow Radio | Free Culture Media Streaming </title>
+ <title>IRCNow Radio | Free Culture Media Streaming</title>
<link rel="stylesheet" type="text/css" href="/style.css"/>
</head>
diff --git a/main.c b/main.c
@@ -115,12 +115,11 @@ void
icestats_print(struct icestats *s)
{
puts("<table class='about'>");
- printf("<tr><td> Admin </td><td> %s </td></tr>\n", s->admin);
- printf("<tr><td> Host </td><td> %s </td></tr>\n", s->host);
- printf("<tr><td> Location </td><td> %s </td></tr>\n", s->location);
- printf("<tr><td> Server ID </td><td> %s </td></tr>\n", s->server_id);
- printf("<tr><td> Server Start </td><td> %s </td></tr>\n", s->server_start);
- /* printf("<tr><td> server_start_iso8601 </td><td> %s </td></tr>\n", s->server_start_iso8601); */
+ printf("<tr><td>Admin</td> <td>%s</td></tr>\n", s->admin);
+ printf("<tr><td>Host</td> <td>%s</td></tr>\n", s->host);
+ printf("<tr><td>Location</td> <td>%s</td></tr>\n", s->location);
+ printf("<tr><td>Server ID</td> <td>%s</td></tr>\n", s->server_id);
+ printf("<tr><td>Server Start</td> <td>%s</td></tr>\n", s->server_start);
puts("</table>");
puts("<hr>");
}
@@ -199,36 +198,22 @@ source_print(struct source *s)
puts("<div class='player'>");
puts("<img src='/music.svg' alt='thumbnail' width='256' height='256'>");
puts("<audio controls='controls' preload='none'>");
- /* puts("<source src='https://theinterlude.live/autodj' type='application/ogg'>"); */
printf("<source src='%s%s' type='application/ogg'>\n", BASE_URL, s->listenurl);
puts("Your browser does not support the video tag.");
puts("</audio>");
puts("</div>");
printf("<a href='%s'>%s</a>\n", s->url, s->server_name);
- /* info */
+
puts("<table>");
- printf("<tr><td> Stream Description </td><td> %s </td></tr>\n", s->server_description);
- printf("<tr><td> Stream Type </td><td> %s </td></tr>\n", s->server_type);
- /* printf("<tr><td> server_url </td><td> %s </td></tr>\n", s->server_url); */
- printf("<tr><td> Stream Start </td><td> %s </td></tr>\n", s->stream_start);
- /* printf("<tr><td> stream_start_iso8601 </td><td> %s </td></tr>\n", s->stream_start_iso8601); */
- /* printf("<tr><td> audio_bitrate </td><td> %s </td></tr>\n", s->audio_bitrate);
- printf("<tr><td> audio_channels </td><td> %s </td></tr>\n", s->audio_channels);
- printf("<tr><td> audio_info </td><td> %s </td></tr>\n", s->audio_info);
- printf("<tr><td> audio_samplerate </td><td> %s </td></tr>\n", s->audio_samplerate); */
- printf("<tr><td> Bitrate </td><td> %s </td></tr>\n", s->bitrate);
- printf("<tr><td> Quality </td><td> %s </td></tr>\n", s->quality);
- 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> channels </td><td> %s </td></tr>\n", s->channels);
- printf("<tr><td> ice_bitrate </td><td> %s </td></tr>\n", s->ice_bitrate);
- printf("<tr><td> listenurl </td><td> %s </td></tr>\n", s->listenurl);
- printf("<tr><td> samplerate </td><td> %s </td></tr>\n", s->samplerate);
- printf("<tr><td> subtype </td><td> %s </td></tr>\n", s->subtype);
- printf("<tr><td> title </td><td> %s </td></tr>\n", s->title);
- printf("<tr><td> dummy </td><td> %s </td></tr>\n", s->dummy); */
+ printf("<tr><td>Stream Description</td> <td>%s</td></tr>\n", s->server_description);
+ printf("<tr><td>Stream Type</td> <td>%s</td></tr>\n", s->server_type);
+ printf("<tr><td>Stream Start</td> <td>%s</td></tr>\n", s->stream_start);
+ printf("<tr><td>Bitrate</td> <td>%s</td></tr>\n", s->bitrate);
+ printf("<tr><td>Quality</td> <td>%s</td></tr>\n", s->quality);
+ 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);
puts("</table>");
puts("</div>");
@@ -360,7 +345,7 @@ main(int argc, char *argv[])
printf("Status: 302 Found\r\n");
printf("Location: %s\r\n", request_url);
printf("\r\n");
- printf("<html><body> Redirecting to <a href='%s'>%s</a></body></html>\n", request_url, request_url);
+ printf("<html><body>Redirecting to <a href='%s'>%s</a></body></html>\n", request_url, request_url);
exit(0);
}