[PR #168] [MERGED] Showing singular "song" if playlist or album only has one song #525

Closed
opened 2026-02-27 19:04:14 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/afkarxyz/SpotiFLAC/pull/168
Author: @KyleARector
Created: 12/17/2025
Status: Merged
Merged: 12/19/2025
Merged by: @afkarxyz

Base: mainHead: main


📝 Commits (1)

  • 67cec32 Showing singular "song" if playlist or album only has one song

📊 Changes

2 files changed (+6 additions, -2 deletions)

View changed files

📝 frontend/src/components/AlbumInfo.tsx (+3 -1)
📝 frontend/src/components/PlaylistInfo.tsx (+3 -1)

📄 Description

Absolutely love this utility! This PR is the tiniest of nitpicks, just showing the singular word "song" if a playlist or album has only one item.

Also open to something in the vein of {albumInfo.total_tracks} song{albumInfo.total_tracks !== 1 && "s"} if that is more stylistically consistent/appropriate. Thank you!


🔄 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/afkarxyz/SpotiFLAC/pull/168 **Author:** [@KyleARector](https://github.com/KyleARector) **Created:** 12/17/2025 **Status:** ✅ Merged **Merged:** 12/19/2025 **Merged by:** [@afkarxyz](https://github.com/afkarxyz) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`67cec32`](https://github.com/afkarxyz/SpotiFLAC/commit/67cec329b2d041d484e451b5ef89a979f5ae3458) Showing singular "song" if playlist or album only has one song ### 📊 Changes **2 files changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/AlbumInfo.tsx` (+3 -1) 📝 `frontend/src/components/PlaylistInfo.tsx` (+3 -1) </details> ### 📄 Description Absolutely love this utility! This PR is the tiniest of nitpicks, just showing the singular word "song" if a playlist or album has only one item. Also open to something in the vein of `{albumInfo.total_tracks} song{albumInfo.total_tracks !== 1 && "s"}` if that is more stylistically consistent/appropriate. Thank you! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 19:04:14 +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/SpotiFLAC#525
No description provided.