[PR #453] [MERGED] fix: add year field to lyrics and cover download template data #545

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

📋 Pull Request Information

Original PR: https://github.com/afkarxyz/SpotiFLAC/pull/453
Author: @diego2glez
Created: 2/5/2026
Status: Merged
Merged: 2/10/2026
Merged by: @afkarxyz

Base: mainHead: fix/lyrics-year-folder


📝 Commits (1)

  • 567a94d fix: add year field to lyrics and cover download template data

📊 Changes

2 files changed (+8 additions, -0 deletions)

View changed files

📝 frontend/src/hooks/useCover.ts (+4 -0)
📝 frontend/src/hooks/useLyrics.ts (+4 -0)

📄 Description

  • Extract year from releaseDate using substring(0, 4) in both hooks
  • Add year field to templateData in single download functions
  • Add year field to templateData in bulk download functions
  • Allows parseTemplate() to correctly replace {year} placeholder instead of defaulting to '0000'
  • Fixes folder structure generation when year is used in filename or folder templates

🔄 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/453 **Author:** [@diego2glez](https://github.com/diego2glez) **Created:** 2/5/2026 **Status:** ✅ Merged **Merged:** 2/10/2026 **Merged by:** [@afkarxyz](https://github.com/afkarxyz) **Base:** `main` ← **Head:** `fix/lyrics-year-folder` --- ### 📝 Commits (1) - [`567a94d`](https://github.com/afkarxyz/SpotiFLAC/commit/567a94d7347b2b949f90a3aa126a0ae64a5b2648) fix: add year field to lyrics and cover download template data ### 📊 Changes **2 files changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/hooks/useCover.ts` (+4 -0) 📝 `frontend/src/hooks/useLyrics.ts` (+4 -0) </details> ### 📄 Description - Extract year from releaseDate using substring(0, 4) in both hooks - Add year field to templateData in single download functions - Add year field to templateData in bulk download functions - Allows parseTemplate() to correctly replace {year} placeholder instead of defaulting to '0000' - Fixes folder structure generation when year is used in filename or folder templates --- <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:18 +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#545
No description provided.