def init( self, api, id=None, title=None, artists=None, headliner=None, venue=None, startDate=None, startTime=None, description=None, image=None, url=None, stats=None, tag=None, ): if not isinstance(api, Api): raise LastfmInvalidParametersError("api reference must be supplied as an argument") Sharable.init(self, api) self.__api = api self.__id = id self.__title = title self.__artists = artists self.__headliner = headliner self.__venue = venue self.__startDate = startDate self.__description = description self.__image = image self.__url = url self.__stats = stats and Stats(subject=self, attendance=stats.attendance, reviews=stats.reviews) self.__tag = tag
def init(self, api, name = None, mbid = None, url = None, duration = None, streamable = None, fullTrack = None, artist = None, album = None, position = None, image = None, stats = None, playedOn = None, lovedOn = None, wiki = None): if not isinstance(api, Api): raise LastfmInvalidParametersError("api reference must be supplied as an argument") Taggable.init(self, api) Sharable.init(self, api) self.__api = api self.__id = id self.__name = name self.__mbid = mbid self.__url = url self.__duration = duration self.__streamable = streamable self.__fullTrack = fullTrack self.__artist = artist self.__album = album self.__position = position self.__image = image self.__stats = stats and Stats( subject = self, match = stats.match, playcount = stats.playcount, rank = stats.rank, listeners = stats.listeners, ) self.__playedOn = playedOn self.__lovedOn = lovedOn self.__wiki = wiki and Wiki( subject = self, published = wiki.published, summary = wiki.summary, content = wiki.content )
def init(self, api, name = None, mbid = None, url = None, image = None, streamable = None, stats = None, similar = None, topTags = None, bio = None): if not isinstance(api, Api): raise LastfmInvalidParametersError("api reference must be supplied as an argument") Taggable.init(self, api) Sharable.init(self, api) self.__api = api self.__name = name self.__mbid = mbid self.__url = url self.__image = image self.__streamable = streamable self.__stats = stats and Stats( subject = self, listeners = stats.listeners, playcount = stats.playcount, match = stats.match, rank = stats.rank ) self.__similar = similar self.__topTags = topTags self.__bio = bio and Wiki( subject = self, published = bio.published, summary = bio.summary, content = bio.content )