- 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
Co-authored-by: Diego Glez <diego@example.com>
This commit fixes an issue where cover art and lyrics files were being saved in deeply nested directories (e.g. Album/Artist/Album/file) instead of the correct Artist/Album/file path. It adds an isAlbum flag to the frontend hooks to prevent redundant path construction when downloading in an album context.
Co-authored-by: Harley <git@haileywelsh.me>
* Corrected function call to correctly download albums vs playlists
* Added setting to prefer AlbumArtist as folder name.
- In practice, this prevents albums with multiple artists, featured artists, collaborations, or collections like soundtracks, from being split up
- This is occasionally desirable behavior, so I added it as a toggle rather than a default behavior