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