[GH-ISSUE #22] Feature Request - {playlist_num} criteria #16

Closed
opened 2026-02-27 04:57:07 +03:00 by kerem · 2 comments
Owner

Originally created by @werlucad on GitHub (Jun 13, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/22

Unless I'm missing one of the options in the config file, there is currently an issue with the {playlist_num} ordering. By default, spotify numbers the songs in a playlist by when they were added, where number 1 is the first song ever added. This script does the exact opposite where the {playlist_num} of 1 is the most recent song added. It would be cool to be able to customise whether it is ascending or descending based on when the track was added to the playlist.

Originally created by @werlucad on GitHub (Jun 13, 2025). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/22 Unless I'm missing one of the options in the config file, there is currently an issue with the {playlist_num} ordering. By default, spotify numbers the songs in a playlist by when they were added, where number 1 is the first song ever added. This script does the exact opposite where the {playlist_num} of 1 is the most recent song added. It would be cool to be able to customise whether it is ascending or descending based on when the track was added to the playlist.
kerem closed this issue 2026-02-27 04:57:07 +03:00
Author
Owner

@Googolplexed0 commented on GitHub (Jun 13, 2025):

Nice catch, this was unintended behavior caused by an optimization for updating playlists (see #55) with 6d10213cc0. Calculating {playlist_num} was done after the reversal. Should be fixed now.

<!-- gh-comment-id:2969137183 --> @Googolplexed0 commented on GitHub (Jun 13, 2025): Nice catch, this was unintended behavior caused by an optimization for updating playlists (see [#55](https://github.com/zotify-dev/zotify/pull/55)) with 6d10213cc0fa25f36c30307cd9c75ba3a4d0649f. Calculating `{playlist_num}` was done after the reversal. Should be fixed now.
Author
Owner

@werlucad commented on GitHub (Jun 13, 2025):

Do I need to delete and reinstall zotify via pipx, or is there a command to update the current installation?

Edit: Used pipx's --force argument to simply overwrite everything from main. I can confirm that the new playlist id fix is working.

<!-- gh-comment-id:2969140203 --> @werlucad commented on GitHub (Jun 13, 2025): Do I need to delete and reinstall zotify via pipx, or is there a command to update the current installation? Edit: Used pipx's --force argument to simply overwrite everything from main. I can confirm that the new playlist id fix is working.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/zotify#16
No description provided.