Skip to content
Snippets Groups Projects

fixed: Ultrastarsongfile

Merged kjk requested to merge ultrastarsongfile-fix into master
+ 10
3
@@ -54,13 +54,20 @@ class UltraStarSongFile:
# Songdata
self.songdata = [] # list of lines with songdata
def __eq__(self, other):
if isinstance(other, self.__class__):
if self.songid == "" or other.songid == "":
return (self.title == other.title) and (self.artist == other.artist) and (self.duett == other.duett)
else:
return self.songid == other.songid
def set_attributes(self, parsed_data: dict) -> None:
"""
Setzt die attribute der klasse
Setzt die attribute der Klasse
@param parsed_data: dict mit den geparseden tags und einem key "songdata" der eine liste,
mit den Text/Tonhöhe Zeilen enthält
Args:
parsed_data: dict mit den geparseden tags und einem key "songdata" der eine liste,
mit den Text/Tonhöhe Zeilen enthält
"""
k: str
v: str
Loading