deemix-py/deemix/types/Artist.py

14 lines
402 B
Python
Raw Normal View History

2021-01-31 16:59:15 +00:00
from deemix.types.Picture import Picture
2021-03-19 13:31:32 +00:00
from deemix.types import VARIOUS_ARTISTS
2021-01-31 16:59:15 +00:00
class Artist:
2021-04-10 09:53:52 +00:00
def __init__(self, art_id="0", name="", role="", pic_md5=""):
self.id = str(art_id)
2021-01-31 16:59:15 +00:00
self.name = name
2021-06-07 18:25:51 +00:00
self.pic = Picture(md5=pic_md5, pic_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