No description
  • Python 89.7%
  • PowerShell 5.4%
  • Batchfile 4.9%
Find a file
2026-01-23 07:45:42 -05:00
Images Initial commit. 2025-09-12 17:28:15 -04:00
Modules Update "Modules" "function_sort_current_users_playlist.py". 2025-10-07 16:59:49 -04:00
.gitignore Update ".gitignore". Add "spmls_python312_v2.ps1" and "spmls_python313_v2.ps1" to ".gitignore" file. 2026-01-23 07:45:42 -05:00
__init__.py Initial commit. 2025-09-12 17:28:15 -04:00
LICENSE Upload "LICENSE". 2025-09-21 15:38:18 -04:00
old_requirements.txt Initial commit. 2025-09-12 17:28:15 -04:00
README.md Update "README.md". 2025-10-07 16:58:46 -04:00
requirements.txt Initial commit. 2025-09-12 17:28:15 -04:00
spmls_template_python312.bat Update "spmls_template_python312.bat". 2025-10-07 17:01:40 -04:00
spmls_template_python312.ps1 Update "spmls_template_python312.ps1". 2025-12-06 15:35:44 -05:00
spmls_template_python313.bat Update "spmls_template_python313.bat". 2025-10-07 17:01:48 -04:00
spmls_template_python313.ps1 Update "spmls_template_python313.ps1". 2025-12-06 15:36:04 -05:00
spotify_playlist_multi-level_sorting.py Update "spotify_playlist_multi-level_sorting.py". 2025-10-07 16:59:31 -04:00

Spotify Playlist Multi-Level Sorting

  • Spotify Playlist Multi-Level Sorting.

Spotify Playlist Multi-Level Sorting | About This Repository

  • This is my repository for my project of creating a way to perform multi-level sorting on Spotify playlists with Python via the Spotify web API and spotipy library.

Spotify Playlist Multi-Level Sorting | Table of Contents

Spotify Playlist Multi-Level Sorting | Additional Information

  • This cannot sort playlists that contain local files.
  • This will sort a Spotify playlist in the following multi-level order:
    • artist
    • release_date
    • album
    • disc_number
    • track_number

Spotify Playlist Multi-Level Sorting | Execution

  1. Create a Spotify application in the Spotify Developer Dashboard.
    • Steps for creating an application can be found here.
    • Use http://127.0.0.1:3000/ for the Redirect URI.
  2. Clone the repository with git clone https://gitlab.cybersanctuary.xyz/wolveraptor/spotify-playlist-multi-level-sorting.git
  3. Navigate to the cloned repository via CLI.
    • For Windows use PowerShell or Command Prompt.
    • For Linux and MacOS use Terminal.
  4. Create a virtual environment.
    • For Windows Command Prompt use python.exe -m venv spmls.
    • For Windows PowerShell use python.exe -m venv spmls.
    • For Linux and MacOS use python3 -m venv spmls.
      • On Debian/Ubuntu systems, you may need to install the python3-venv package.
        • Example: sudo apt install python3-venv
  5. Activate the virtual environment.
    • For Windows Command Prompt use spmls\Scripts\activate.bat.
    • For Windows PowerShell use .\spmls\Scripts\Activate.ps1.
    • For Linux and MacOS use source spmls/bin/activate.
  6. Install required dependencies.
    • For Windows Command Prompt use python.exe -m pip install -r requirements.txt.
    • For Windows PowerShell use python.exe -m pip install -r .\requirements.txt.
    • For Linux and MacOS use python3 -m pip install -r requirements.txt.
  7. Execute spotify_playlist_multi-level_sorting.py and supply the Client ID from the Spotify Developer Dashboard and the Client Secret from the Spotify Developer Dashboard.
    • Client ID:
    • alttext
    • Client Secret:
    • alttext
    • For Windows Command Prompt use python.exe spotify_playlist_multi-level_sorting.py 0123456789 9876543210.
    • For Windows PowerShell use python.exe .\spotify_playlist_multi-level_sorting.py 0123456789 9876543210.
    • For Linux and MacOS use python3 spotify_playlist_multi-level_sorting.py 0123456789 9876543210.
  8. Follow the on-screen prompts.
  9. Deactivate the virtual environment.
    • For Windows Command Prompt use spmls\Scripts\deactivate.bat.
    • For Windows PowerShell use deactivate.
    • For Linux and MacOS use deactivate.

Spotify Playlist Multi-Level Sorting | Notes

  • To view example usage and the optional argument execute:
    • Windows: py spotify_playlist_multi-level_sorting.py -h or py spotify_playlist_multi-level_sorting.py --help
    • MacOS and Ubuntu: python3 spotify_playlist_multi-level_sorting.py -h or python3 spotify_playlist_multi-level_sorting.py --help
  • 0123456789 and 9876543210 are examples of Client ID and Client Secret respectively. Do not use these values as they will not work. You must enter the Client ID and Client Secret as they appear in the Spotify Developer Dashboard.
  • If the optional argument -ruri or --redirect_uri is supplied, the Redirect URI from the Spotify Developer Dashboard must be entered as well. This optional argument only needs to be supplied if a Redirect URI other than http://localhost:3000 was configured in the Spotify Developer Dashboard.