spotDL / spotify-downloader

Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).
https://spotdl.readthedocs.io/en/latest/
MIT License
15.55k stars 1.48k forks source link

Preserve original `list-position`, when local/unavailable songs are skipped #2105

Open dxrcy opened 1 month ago

dxrcy commented 1 month ago

Title

Preserve original list-position, when local/unavailable songs are skipped

Description

When downloading with {list-position} included in the --output option. When a local song is ignored, or a song is unavailable, previously the track numbers would shift down to fill the gap; now the track numbers correspond to the list positions in the original playlist.

This pull request is unfinished, as I need feedback on whether this is even a good addition to the project, and whether a new CLI option should be added :)

Related Issue

Motivation and Context

I think that an option to preserve the original number would be beneficial, especially if a user wants to manually include the local tracks, so they won't have to rename the files to fix the numbers.

How Has This Been Tested?

Since this is such a small change, I just ran some manual tests and checked compilation still worked.

Types of Changes

Checklist

dxrcy commented 1 month ago

Could i get a compiled version of this ?

What platform are you on? Are you not able to compile it yourself?