mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-27 15:32:48 -05:00
Use new public JSON streams endpoint
This commit is contained in:
@@ -25,7 +25,7 @@ function Overlay({ views, streams, customStreams }) {
|
||||
{activeViews.map((viewState) => {
|
||||
const { content, pos } = viewState.context
|
||||
const data = [...streams, ...customStreams].find(
|
||||
(d) => content.url === d.Link,
|
||||
(d) => content.url === d.link,
|
||||
)
|
||||
const isListening = viewState.matches(
|
||||
'displaying.running.audio.listening',
|
||||
@@ -39,11 +39,11 @@ function Overlay({ views, streams, customStreams }) {
|
||||
<StreamTitle isListening={isListening}>
|
||||
<StreamIcon url={content.url} />
|
||||
<span>
|
||||
{data.hasOwnProperty('Label') ? (
|
||||
data.Label
|
||||
{data.hasOwnProperty('label') ? (
|
||||
data.label
|
||||
) : (
|
||||
<>
|
||||
{data.Source} – {data.City} {data.State}
|
||||
{data.source} – {data.city} {data.state}
|
||||
</>
|
||||
)}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user