Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to hide album name & year #83

Open
prism2001 opened this issue Mar 23, 2024 · 1 comment
Open

Option to hide album name & year #83

prism2001 opened this issue Mar 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@prism2001
Copy link

it would be nice if there was a config option to remove the album name and the year from the second line
image
so that only the artist name appears, similar to the built-in Spotify rich presence. makes for a cleaner look imo

@phin05 phin05 added the enhancement New feature or request label Mar 23, 2024
@phin05
Copy link
Owner

phin05 commented Mar 23, 2024

I plan to add a templating system that allows customising all that.

In the meantime, to implement your preference, you can replace this line:

stateStrings.append(artistAlbum)

with:

stateStrings.append(item.originalTitle or item.grandparentTitle)

and delete these lines (don't need to but they would be rendered useless after the above change):

artistAlbum = f"{item.originalTitle or item.grandparentTitle} - {item.parentTitle}"
parent = self.server.fetchItem(item.parentRatingKey)
if parent.year:
artistAlbum += f" ({parent.year})"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants