making preview url optional
This commit is contained in:
parent
3983b2cccc
commit
d8c9945ac9
@ -29,14 +29,14 @@ class SimplifiedTrack:
|
|||||||
href: str
|
href: str
|
||||||
id: str
|
id: str
|
||||||
name: str
|
name: str
|
||||||
preview_url: str
|
|
||||||
track_number: int
|
track_number: int
|
||||||
type: str
|
type: str
|
||||||
uri: Union[str, Uri]
|
uri: Union[str, Uri]
|
||||||
is_local: bool
|
is_local: bool
|
||||||
|
preview_url: str = None
|
||||||
is_playable: bool = None
|
is_playable: bool = None
|
||||||
episode: bool = None
|
episode: bool = None
|
||||||
# track: bool = None
|
track: bool = None
|
||||||
|
|
||||||
def __post_init__(self):
|
def __post_init__(self):
|
||||||
if isinstance(self.uri, str):
|
if isinstance(self.uri, str):
|
||||||
|
Loading…
Reference in New Issue
Block a user