[PR #27] [MERGED] Fix -l errors if playlist provided is just the ID #35

Closed
opened 2026-02-27 20:07:48 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/misiektoja/spotify_profile_monitor/pull/27
Author: @tomballgithub
Created: 9/6/2025
Status: Merged
Merged: 9/7/2025
Merged by: @tomballgithub

Base: devHead: playlist_error


📝 Commits (1)

  • d16dd59 If playlist provided to -l command is just the ID, allow that to work instead of generating error. Also, added check to ensure that if the URI isn't correct (2 sets of colons), an appropriate error messages is shown.

📊 Changes

1 file changed (+11 additions, -2 deletions)

View changed files

📝 spotify_profile_monitor.py (+11 -2)

📄 Description

If the playlist provided to the -l argument is just the ID, allow that to work instead of generating an error. Also, added a check to ensure that if the URI isn't correct (2 sets of colons), an appropriate error message is shown.

Note: Spotify playlist IDs are 22 characters long and use a base-62 alphanumeric format of uppercase letters (A-Z), lowercase letters (a-z), and numbers (0-9)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/misiektoja/spotify_profile_monitor/pull/27 **Author:** [@tomballgithub](https://github.com/tomballgithub) **Created:** 9/6/2025 **Status:** ✅ Merged **Merged:** 9/7/2025 **Merged by:** [@tomballgithub](https://github.com/tomballgithub) **Base:** `dev` ← **Head:** `playlist_error` --- ### 📝 Commits (1) - [`d16dd59`](https://github.com/misiektoja/spotify_profile_monitor/commit/d16dd59fb4ceaf45003ef283d580e097500c1f06) If playlist provided to -l command is just the ID, allow that to work instead of generating error. Also, added check to ensure that if the URI isn't correct (2 sets of colons), an appropriate error messages is shown. ### 📊 Changes **1 file changed** (+11 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `spotify_profile_monitor.py` (+11 -2) </details> ### 📄 Description If the playlist provided to the -l argument is just the ID, allow that to work instead of generating an error. Also, added a check to ensure that if the URI isn't correct (2 sets of colons), an appropriate error message is shown. Note: Spotify playlist IDs are 22 characters long and use a base-62 alphanumeric format of uppercase letters (A-Z), lowercase letters (a-z), and numbers (0-9) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem closed this issue 2026-02-27 20:07:48 +03:00
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/spotify_profile_monitor#35
No description provided.