Various fixes
This commit is contained in:
@@ -133,6 +133,19 @@ class Tema:
|
||||
result = next(filter(lambda prop: prop.field is PropertyField.ORIGEN, self.properties), None)
|
||||
return result.value if result else None
|
||||
|
||||
@property
|
||||
def has_score(self) -> bool:
|
||||
return bool(self.main_score())
|
||||
|
||||
@property
|
||||
def has_audio(self) -> bool:
|
||||
audio_links = filter(lambda l: l.content_type is ContentType.AUDIO, self.links)
|
||||
return any(audio_links)
|
||||
|
||||
@property
|
||||
def has_lyrics(self) -> bool:
|
||||
return bool(self.lyrics)
|
||||
|
||||
|
||||
class TemaCols(enum.Enum):
|
||||
NOM = "nom"
|
||||
|
||||
Reference in New Issue
Block a user