mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 01:03:53 +00:00
Merge 051e6d49af into 351d4223d0
This commit is contained in:
commit
d8d1d901fc
@ -10,6 +10,8 @@ Add your changes below.
|
||||
|
||||
### Added
|
||||
|
||||
- Added a warning if the URI regex did not match the input.
|
||||
|
||||
### Fixed
|
||||
|
||||
### Removed
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user