WIP
This commit is contained in:
@@ -83,6 +83,9 @@ class AlbumSearchQuery:
|
|||||||
class Genre:
|
class Genre:
|
||||||
name: str
|
name: str
|
||||||
|
|
||||||
|
# Pickle backwards compatibility
|
||||||
|
_Genre = Genre
|
||||||
|
|
||||||
class Type(Enum):
|
class Type(Enum):
|
||||||
"""
|
"""
|
||||||
Represents a type of query. Use :class:`Adapter.supported_artist_query_types` to
|
Represents a type of query. Use :class:`Adapter.supported_artist_query_types` to
|
||||||
|
@@ -89,6 +89,9 @@ class UIState:
|
|||||||
|
|
||||||
active_playlist_id: Optional[str] = None
|
active_playlist_id: Optional[str] = None
|
||||||
|
|
||||||
|
# Pickle backwards compatibility
|
||||||
|
_DefaultGenre = AlbumSearchQuery.Genre
|
||||||
|
|
||||||
def __getstate__(self):
|
def __getstate__(self):
|
||||||
state = self.__dict__.copy()
|
state = self.__dict__.copy()
|
||||||
del state["song_stream_cache_progress"]
|
del state["song_stream_cache_progress"]
|
||||||
|
Reference in New Issue
Block a user