spotify-downloader
spotify-downloader copied to clipboard
Preserve original `list-position`, when local/unavailable songs are skipped
Requested Feature
When downloading with {list-position}
included in the --output
option.
When a local song is ignored, the following songs in the playlist will be saved under a different track number than that of the original playlist (shifted down to fill gaps). 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.
Playlist order as shown on Spotify:
- foo
- bar (local/unavailable)
- baz
Tracks downloaded:
- foo
- baz (should be 3)
This is a very minor issue, so I do not mind if this is considered out of scope or not worthwhile :-)
See #2105
Possible implementation
- Set the
list_position
field insong
intypes/playlist.py:111
- Don't override it in
utils/spotify.py:303
-- or --
- Append
None
(or some sentinal value) tosongs
after showing the local song warning, intypes/playlist.py:101
. - Check for
None
whenever the songs list is looped over, such asutils/search.py:300