Skip to content

Songticker for shows that are not Klangbecken isn't readable #20

@hairmare

Description

@hairmare

I just noticed that Radio Goethe is showing up as Goethe Radio:

Image

The XML from nowplaying looks like this:

<ticker>
  <identifier>ticker-c9d66c46-d8ad-4a94-8926-50c4861c0134</identifier>
  <creator>now-playing daemon v2</creator>
  <date>2025-01-29T23:00:03+01:00</date>
  <show id="05c47247-ea64-4e3e-9436-d13fcaff6a26">
    <name>Radio Goethe</name>
    <link xlink:type="simple" xlink:href="https://rabe.ch/radio-goethe" xlink:show="replace">https://rabe.ch/radio-goethe</link>
    <startTime>2025-01-29T23:00:00+01:00</startTime>
    <endTime>2025-01-30T00:00:00+01:00</endTime>
  </show>
  <track id="2fab0a9c-e8b0-4879-8b22-01aca50e7a1c">
    <show ref="05c47247-ea64-4e3e-9436-d13fcaff6a26">Radio Goethe</show>
    <artist>Radio Bern</artist>
    <title>Livestream</title>
    <startTime>2025-01-29T23:00:00+01:00</startTime>
    <endTime>2025-01-30T00:00:00+01:00</endTime>
  </track>
</ticker>

Under the hood it seems to render the show name twice as follows:

<div dir="auto" class="css-1rynq56">
  <span class="css-1qaijid" style="white-space: nowrap; font-family: &quot;__FontBold_da8fd3&quot;, &quot;__FontBold_Fallback_da8fd3&quot;; font-size: 18px; font-weight: 100; font-feature-settings: &quot;tnum&quot;; color: rgb(227, 249, 248);">Radio Goethe </span>
  <span class="css-1qaijid" style="white-space: nowrap; font-family: &quot;__FontBold_da8fd3&quot;, &quot;__FontBold_Fallback_da8fd3&quot;; font-size: 18px; font-weight: 100; font-feature-settings: &quot;tnum&quot;; color: rgb(227, 249, 248);">Radio Goethe </span>
</div>

Most likely this is related to #19 and we should just never render the /ticker/track/show element.

I've also heard people say that the ticker scrolls through the text if it doesn't fit in the ticker div, i've never seen that in action in any of my browsers, but it would have made me less confused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions