spotify-monitor 2.0rc1__tar.gz → 2.0rc2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of spotify-monitor might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: spotify_monitor
3
- Version: 2.0rc1
3
+ Version: 2.0rc2
4
4
  Summary: Tool implementing real-time tracking of Spotify friends music activity
5
5
  Author-email: Michal Szymanski <misiektoja-pypi@rm-rf.ninja>
6
6
  License-Expression: GPL-3.0-or-later
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "spotify_monitor"
7
- version = "2.0rc1"
7
+ version = "2.0rc2"
8
8
  description = "Tool implementing real-time tracking of Spotify friends music activity"
9
9
  readme = "README.md"
10
10
  license = "GPL-3.0-or-later"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: spotify_monitor
3
- Version: 2.0rc1
3
+ Version: 2.0rc2
4
4
  Summary: Tool implementing real-time tracking of Spotify friends music activity
5
5
  Author-email: Michal Szymanski <misiektoja-pypi@rm-rf.ninja>
6
6
  License-Expression: GPL-3.0-or-later
@@ -1123,7 +1123,10 @@ def spotify_convert_uri_to_url(uri):
1123
1123
  si = "?si=1"
1124
1124
  # si=""
1125
1125
 
1126
+ uri = uri or ''
1126
1127
  url = ""
1128
+ if not isinstance(uri, str):
1129
+ return url
1127
1130
  if "spotify:user:" in uri:
1128
1131
  s_id = uri.split(':', 2)[2]
1129
1132
  url = f"https://open.spotify.com/user/{s_id}{si}"