Commit f71ce7e
committed
fix(yp): send Icecast2-canonical fields (st, listeners, bitrate) so dir.xiph.org displays current song and listener count
dir.xiph.org reads the standard Icecast2 YP keys: `st` for the current
stream title (we were sending `title`, which it ignores), `listeners`
for the live count (we weren\x27t sending it at all), and `bitrate` for
the audio bitrate (we were sending `cps`, a tinyice-specific name).
Send all three keys; keep the legacy aliases (`title`, `cps`) so we do
not regress YP servers that read those instead. `listeners` comes from
the live StreamStats snapshot, so the post-rebuild count (transcoders
excluded) is the value advertised.1 parent 74c03e7 commit f71ce7e
1 file changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
130 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
131 | 138 | | |
132 | 139 | | |
133 | 140 | | |
134 | 141 | | |
135 | 142 | | |
136 | | - | |
137 | | - | |
138 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
139 | 146 | | |
| 147 | + | |
140 | 148 | | |
141 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
142 | 153 | | |
143 | 154 | | |
144 | 155 | | |
| |||
0 commit comments