Change Directory
This commit is contained in:
17
librespot/metadata/UnsupportedId.py
Normal file
17
librespot/metadata/UnsupportedId.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from librespot.metadata import PlayableId
|
||||
|
||||
|
||||
class UnsupportedId(PlayableId):
|
||||
uri: str
|
||||
|
||||
def __init__(self, uri: str):
|
||||
self.uri = uri
|
||||
|
||||
def get_gid(self) -> bytes:
|
||||
raise TypeError()
|
||||
|
||||
def hex_id(self) -> str:
|
||||
raise TypeError()
|
||||
|
||||
def to_spotify_uri(self) -> str:
|
||||
return self.uri
|
||||
Reference in New Issue
Block a user