mirror of
https://github.com/kokarare1212/librespot-python.git
synced 2024-09-30 08:21:18 +02:00
18 lines
325 B
Python
18 lines
325 B
Python
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
|