Beispiel #1
0
    def __post_init__(self):
        self.added_at = Timestamp.from_string(self.added_at)
        self.added_by = PublicUser(**self.added_by)

        if self.video_thumbnail is not None:
            self.video_thumbnail = Image(**self.video_thumbnail)

        if self.track is not None:
            if self.is_local:
                self.track = LocalTrack(**self.track)
            else:
                self.track = FullTrack(**self.track)
Beispiel #2
0
 def __post_init__(self):
     self.copyrights = [Copyright(**c) for c in self.copyrights]
     self.images = [Image(**i) for i in self.images]
Beispiel #3
0
 def __post_init__(self):
     self.icons = [Image(**i) for i in self.icons]
Beispiel #4
0
 def __post_init__(self):
     if self.followers is not None:
         self.followers = Followers(**self.followers)
     if self.images is not None:
         self.images = [Image(**i) for i in self.images]
Beispiel #5
0
 def __post_init__(self):
     self.images = [Image(**i) for i in self.images]
     self.release_date_precision = ReleaseDatePrecision[
         self.release_date_precision]
Beispiel #6
0
 def __post_init__(self):
     self.images = [Image(**i) for i in self.images]
     self.owner = PublicUser(**self.owner)
Beispiel #7
0
 def __post_init__(self):
     self.followers = Followers(**self.followers)
     self.images = [Image(**i) for i in self.images]
Beispiel #8
0
 def __post_init__(self):
     self.album_type = AlbumType[self.album_type.lower()]
     self.artists = [SimpleArtist(**a) for a in self.artists]
     self.images = [Image(**i) for i in self.images]
     self.release_date_precision = ReleaseDatePrecision[
         self.release_date_precision]