Convert get_artists to AdapterManager

This commit is contained in:
Sumner Evans
2020-05-11 10:20:51 -06:00
parent 391740084e
commit 6c123c7488
12 changed files with 389 additions and 128 deletions

View File

@@ -16,8 +16,8 @@ class MediaType(Enum):
class Genre(abc.ABC):
name: str
song_count: Optional[int] = None
album_count: Optional[int] = None
song_count: Optional[int]
album_count: Optional[int]
class Album(abc.ABC):
@@ -28,6 +28,10 @@ class Album(abc.ABC):
class Artist(abc.ABC):
id: str
name: str
album_count: Optional[int]
cover_art: Optional[str]
artist_image_url: Optional[str]
starred: Optional[datetime]
class Directory(abc.ABC):
@@ -41,9 +45,9 @@ class Song(abc.ABC):
id: str
title: str
parent: Directory
album: Optional[Album] = None
artist: Optional[Artist] = None
genre: Optional[Genre] = None
album: Optional[Album]
artist: Optional[Artist]
genre: Optional[Genre]
track: Optional[int]
year: Optional[int]