2021-01-31 16:59:15 +00:00
|
|
|
from deemix.types.Picture import Picture
|
|
|
|
from deemix import VARIOUS_ARTISTS
|
|
|
|
|
|
|
|
class Artist:
|
2021-03-13 10:54:01 +00:00
|
|
|
def __init__(self, id="0", name="", role="", pic_md5=""):
|
2021-01-31 16:59:15 +00:00
|
|
|
self.id = str(id)
|
|
|
|
self.name = name
|
|
|
|
self.pic = Picture(md5=pic_md5, type="artist")
|
2021-03-13 10:54:01 +00:00
|
|
|
self.role = role
|
2021-01-31 16:59:15 +00:00
|
|
|
self.save = True
|
|
|
|
|
|
|
|
def isVariousArtists(self):
|
|
|
|
return self.id == VARIOUS_ARTISTS
|