This commit is contained in:
Niko 2026-03-13 02:50:36 +00:00 committed by GitHub
commit d8d1d901fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,8 @@ Add your changes below.
### Added
- Added a warning if the URI regex did not match the input.
### Fixed
### Removed

View File

@ -2214,6 +2214,7 @@ class Spotify:
def _get_uri(self, type, id):
if self._is_uri(id):
warnings.warn(f"{repr(id)} did not match the Spotify URI RegEx.", UserWarning)
return id
else:
return "spotify:" + type + ":" + self._get_id(type, id)