This commit is contained in:
Benjamin Schaaf
2022-01-09 17:34:46 +11:00
parent d0861460fd
commit 6c2dbf192e
2 changed files with 6 additions and 0 deletions

View File

@@ -83,6 +83,9 @@ class AlbumSearchQuery:
class Genre:
name: str
# Pickle backwards compatibility
_Genre = Genre
class Type(Enum):
"""
Represents a type of query. Use :class:`Adapter.supported_artist_query_types` to

View File

@@ -89,6 +89,9 @@ class UIState:
active_playlist_id: Optional[str] = None
# Pickle backwards compatibility
_DefaultGenre = AlbumSearchQuery.Genre
def __getstate__(self):
state = self.__dict__.copy()
del state["song_stream_cache_progress"]