feat: improved option string of songs
This commit is contained in:
		@@ -156,10 +156,14 @@ class Song(Base):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    @property
 | 
					    @property
 | 
				
			||||||
    def option_string(self) -> str:
 | 
					    def option_string(self) -> str:
 | 
				
			||||||
        return f"{self.__repr__()} " \
 | 
					        r = f"{self.__repr__()}"
 | 
				
			||||||
               f"from Album({OPTION_STRING_DELIMITER.join(album.title for album in self.album_collection)}) " \
 | 
					        if not self.album_collection.empty:
 | 
				
			||||||
               f"by Artist({OPTION_STRING_DELIMITER.join(artist.name for artist in self.main_artist_collection)}) " \
 | 
					            r += f" from Album({OPTION_STRING_DELIMITER.join(album.title for album in self.album_collection)})" 
 | 
				
			||||||
               f"feat. Artist({OPTION_STRING_DELIMITER.join(artist.name for artist in self.feature_artist_collection)})"
 | 
					        if not self.main_artist_collection.empty:
 | 
				
			||||||
 | 
					            r += f" by Artist({OPTION_STRING_DELIMITER.join(artist.name for artist in self.main_artist_collection)})" 
 | 
				
			||||||
 | 
					        if not self.feature_artist_collection.empty:
 | 
				
			||||||
 | 
					            r += f" feat. Artist({OPTION_STRING_DELIMITER.join(artist.name for artist in self.feature_artist_collection)})"
 | 
				
			||||||
 | 
					        return r
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @property
 | 
					    @property
 | 
				
			||||||
    def options(self) -> List[P]:
 | 
					    def options(self) -> List[P]:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user