Skip to content

Conversation

kerneljake
Copy link

@kerneljake kerneljake commented Oct 15, 2024

This patch allows Squeezeplay to display the date in parentheses next to the album in Now Playing. This makes it behave similar to Material. No modifications to Squeezeplay are required.

image

This is my first ever LMS pull request, so I’m looking for feedback and guidance if I’m off the mark here.

test plan:

  • Squeezplay (Now Playing widget) on Linux & macOS
    • local FLAC, local mp3, and Radio Paradise interactive FLAC streams - shows year in parentheses correctly
    • Asterisk radio station - no effect
  • Radio - same effect as seen in Squeezeplay above
  • Transporter - no effect
  • Squeezer on Android - no effect
  • Orange Squeeze on Android - doubles the date "Like This (2009) (2009)" when enabled

# **********************************************************************
# *** This is a performance-critical method ***
# Take cake to understand the performance implications of any changes.
# Take care to understand the performance implications of any changes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The truth lies in the cake, doesn't it? 😁

Copy link
Member

@michaelherger michaelherger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good for a first PR! Thanks!

Unfortunately I'm a big hesitant to merge at this point, as I could imagine this to cause quite a bit of opinionated discussions... "I want to be able to turn this off!". People don't like changes to what they became used to seeing.

So what I'd suggest is to wait for 9.0 to be released and put this in whatever comes next (9.1). And you could make it depend on the showYear pref: there's an option to "show year with albums" in the standard web UI. This mostly applies to album lists and such, but could probably satisfy some of the naysayers.

And please also test with online radio stations and such. Thanks!

@michaelherger michaelherger added this to the 9.1.0 milestone Oct 15, 2024
@michaelherger michaelherger self-assigned this Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants