projects
/
music-assistant-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
276fcac
)
Fix musicbrainz id check (#1026)
author
Marcel van der Veldt
<m.vanderveldt@outlook.com>
Wed, 24 Jan 2024 11:24:32 +0000
(12:24 +0100)
committer
GitHub
<noreply@github.com>
Wed, 24 Jan 2024 11:24:32 +0000
(12:24 +0100)
music_assistant/common/helpers/util.py
patch
|
blob
|
history
diff --git
a/music_assistant/common/helpers/util.py
b/music_assistant/common/helpers/util.py
index d5ff70e64adaa75cc4f24fc4beff49a5cb7b39b5..89eef728f09d6680f227698d3ffb841d963251d4 100755
(executable)
--- a/
music_assistant/common/helpers/util.py
+++ b/
music_assistant/common/helpers/util.py
@@
-280,10
+280,10
@@
def empty_queue(q: asyncio.Queue) -> None:
pass
-def is_valid_uuid(uuid_to_test: str
, version: int = 4
) -> bool:
+def is_valid_uuid(uuid_to_test: str) -> bool:
"""Check if uuid string is a valid UUID."""
try:
- uuid_obj = UUID(uuid_to_test
, version=version
)
+ uuid_obj = UUID(uuid_to_test)
except ValueError:
return False
return str(uuid_obj) == uuid_to_test