commit bb2cfe0d47d08823ba272951bb0b76cdf93a5930
parent 5c7eb3f133b113fb654f7a76020e53c74d08325f
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Mon, 21 Oct 2024 23:18:51 +0200
feat: ensure channels are unique
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/assets/css/custom.css b/assets/css/custom.css
@@ -11,6 +11,7 @@
}
#searchbar {
width: 100%;
+ margin-top: 2em;
}
.chat_container, .chat_container > iframe {
width: 100%;
diff --git a/index.php b/index.php
@@ -37,8 +37,8 @@
$streams = explode(",", $streams);
}
- // Sort streams by alphabet
- sort($streams);
+ // Sort streams by alphabet and ensure each stream is unique
+ $streams = array_unique($streams);
/* refresh cookie */
header(
@@ -91,7 +91,6 @@
action="https://www.twitch.tv/search"
method="GET"
target="_blank"
- style="width:100%;margin-top:1em;"
>
<input
id="searchbar"
@@ -162,7 +161,7 @@
<h2 id="streams">List of Streams</h2>
<p>
Please enter the Twitch.TV usernames of streams you want to check here, each
- separated with a ","
+ separated with a <code>,</code>:
</p>
<form action="/" method="POST">
<textarea