[PR #276] [MERGED] add explicit tags to track information #702

Closed
opened 2026-03-02 23:49:26 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/aome510/spotify-player/pull/276
Author: @SebRollen
Created: 10/23/2023
Status: Merged
Merged: 10/23/2023
Merged by: @aome510

Base: masterHead: explicit-tags


📝 Commits (3)

  • 6483366 add explicit tags to track information
  • 92eba46 use 🅴 instead of (Explicit)
  • 2fb2fc4 replace E unicode with (E)

📊 Changes

3 files changed (+26 additions, -4 deletions)

View changed files

📝 spotify_player/src/state/model.rs (+14 -1)
📝 spotify_player/src/ui/page.rs (+7 -2)
📝 spotify_player/src/ui/playback.rs (+5 -1)

📄 Description

Fixes #96.

Adds (Explicit) to a track name if Spotify reports it as having explicit lyrics. This can make it easier to know if you're listening to the explicit version or the "radio" version of a song.

I originally tried to implement this functionality at the album level, using the restrictions field on the Album API, but the explicit field was not populated in any of my tests. This seems to match the behavior of the spotify web interface, were there is no explicit marker at the album level, but there is one at the track level.

Question for @braheezy (author of #96) and @aome510: what are your thoughts on modifying the track title by appending the string (Explicit)? Spotify's web interface obviously handles this a bit differently, adding an E symbol, but I wasn't sure how to translate that to the spotify_player interface. Another possiblity could be to add another column in the track-list, populating the column with E for explicit tracks and leaving it blank for non-explicit tracks.

Screenshots:

Explicit album track listing:
Screenshot 2023-10-22 at 8 28 10 PM

"Radio" album track listing:
Screenshot 2023-10-22 at 8 28 24 PM


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/aome510/spotify-player/pull/276 **Author:** [@SebRollen](https://github.com/SebRollen) **Created:** 10/23/2023 **Status:** ✅ Merged **Merged:** 10/23/2023 **Merged by:** [@aome510](https://github.com/aome510) **Base:** `master` ← **Head:** `explicit-tags` --- ### 📝 Commits (3) - [`6483366`](https://github.com/aome510/spotify-player/commit/64833668580be7aec02e2e882422868a37dbd942) add explicit tags to track information - [`92eba46`](https://github.com/aome510/spotify-player/commit/92eba460efdd805b2cd28f157f829ce5c7f5e1bd) use 🅴 instead of (Explicit) - [`2fb2fc4`](https://github.com/aome510/spotify-player/commit/2fb2fc4417839ddda443bca0414ba27a35faceaa) replace E unicode with (E) ### 📊 Changes **3 files changed** (+26 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `spotify_player/src/state/model.rs` (+14 -1) 📝 `spotify_player/src/ui/page.rs` (+7 -2) 📝 `spotify_player/src/ui/playback.rs` (+5 -1) </details> ### 📄 Description Fixes #96. Adds `(Explicit)` to a track name if Spotify reports it as having explicit lyrics. This can make it easier to know if you're listening to the explicit version or the "radio" version of a song. I originally tried to implement this functionality at the album level, using the `restrictions` field on [the Album API](https://developer.spotify.com/documentation/web-api/reference/get-an-album), but the `explicit` field was not populated in any of my tests. This seems to match the behavior of the spotify web interface, were there is no explicit marker at the album level, but there is one at the track level. Question for @braheezy (author of #96) and @aome510: what are your thoughts on modifying the track title by appending the string `(Explicit)`? Spotify's web interface obviously handles this a bit differently, adding an `E` symbol, but I wasn't sure how to translate that to the spotify_player interface. Another possiblity could be to add another column in the track-list, populating the column with `E` for explicit tracks and leaving it blank for non-explicit tracks. ## Screenshots: Explicit album track listing: <img width="1552" alt="Screenshot 2023-10-22 at 8 28 10 PM" src="https://github.com/aome510/spotify-player/assets/38324289/0ee24555-6284-4fea-a666-b1cdac071fb0"> "Radio" album track listing: <img width="1552" alt="Screenshot 2023-10-22 at 8 28 24 PM" src="https://github.com/aome510/spotify-player/assets/38324289/ac3477e5-df31-4be6-a773-d9c8a597d337"> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:49:26 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#702
No description provided.