downloadSelectedCategory() was passing only the category name to the download function, which fetched ALL tracks in that category. Now collects checked track IDs from checkboxes BEFORE closing the modal (DOM is destroyed on close), then filters the fetched tracks to only the selected ones. If nothing is checked, downloads the full category (same as before). Other callers of openDownloadMissingWishlistModal are unaffected — the new selectedTrackIds parameter defaults to null. |
||
|---|---|---|
| .. | ||
| static | ||
| index.html | ||