making preview url optional
Some checks failed
Tests / build (ubuntu-latest) (push) Failing after 1m0s
Tests / Package Library (push) Has been skipped

This commit is contained in:
Andy Pack 2024-11-01 23:44:45 +00:00
parent 3983b2cccc
commit d8c9945ac9
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7

View File

@ -29,14 +29,14 @@ class SimplifiedTrack:
href: str
id: str
name: str
preview_url: str
track_number: int
type: str
uri: Union[str, Uri]
is_local: bool
preview_url: str = None
is_playable: bool = None
episode: bool = None
# track: bool = None
track: bool = None
def __post_init__(self):
if isinstance(self.uri, str):