mirror of
https://github.com/ivabus/hlssimple
synced 2024-11-10 02:25:16 +03:00
Count let of streams
This commit is contained in:
parent
0862467e91
commit
14e1dfed76
|
@ -88,6 +88,9 @@ fn index() -> RawHtml<String> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m3u8.sort_by_key(|x| x.alias.clone());
|
m3u8.sort_by_key(|x| x.alias.clone());
|
||||||
|
if m3u8.len() == 0 {
|
||||||
|
res += "No streams available";
|
||||||
|
}
|
||||||
for i in m3u8 {
|
for i in m3u8 {
|
||||||
res += &*format!(
|
res += &*format!(
|
||||||
"<a href=\"{}\">{}</a> <a href=\"/play/{}\">Play</a> (copy link into your player)<br>",
|
"<a href=\"{}\">{}</a> <a href=\"/play/{}\">Play</a> (copy link into your player)<br>",
|
||||||
|
|
Loading…
Reference in a new issue