Fix musicbrainz id check (#1026)
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 24 Jan 2024 11:24:32 +0000 (12:24 +0100)
committerGitHub <noreply@github.com>
Wed, 24 Jan 2024 11:24:32 +0000 (12:24 +0100)
music_assistant/common/helpers/util.py

index d5ff70e64adaa75cc4f24fc4beff49a5cb7b39b5..89eef728f09d6680f227698d3ffb841d963251d4 100755 (executable)
@@ -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