feat: fix playlist limit, add folder sync option, and refactor client #41
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Playlist Improvements: Pagination, Folder Organization & Stability Fixes
Description
This PR addresses stability issue regarding playlist handling, and introduces a new configuration option for file organization.
The primary goal was to resolve the 100-track limit on playlist downloads by properly paginating API requests. Additionally, a new feature allows users to force downloads into a dedicated playlist folder, bypassing the standard Artist/Album structure.
Changes
1. Feature: Standalone Playlist Folders
tidaloader_playlists/{PlaylistName}/.2. Fix: 100-Track Limit
get_playlist_tracksto iteratively fetch all available tracks (with a safety cap at 10,000).3. Fix: Settings Attribute Error
AttributeError: group_compilationscausing manual sync tasks to fail.group_compilationsattribute to the Settings model inbackend/api/settings.py.4. Code Refactor
backend/tidal_client.pyto simplify theget_playlist_tracksmethod.How to Test
downloads/tidaloader_playlists/{PlaylistName}/as a flat list, alongside the.m3u8and cover image.Type of Change