This commit is contained in:
Lars Noack
2022-11-25 12:12:58 +01:00
parent a99f794174
commit 696de60249
6 changed files with 30 additions and 90 deletions

View File

@@ -4,7 +4,8 @@ from . import (
artist,
metadata,
source,
target
target,
lyrics
)
Song = song.Song
@@ -12,5 +13,6 @@ Artist = artist.Artist
Source = source.Source
Target = target.Target
Metadata = metadata.Metadata
Lyrics = lyrics.Lyrics
cache = temp_database.TempDatabase()

View File

@@ -1,7 +1,4 @@
class Lyrics:
def __init__(self, text: str = None, language: str = None) -> None:
def __init__(self, text: str, language: str) -> None:
self.text = text
self.language = language
def set_lyrics(self, text: str, language: str):
pass

View File

@@ -47,6 +47,9 @@ class Song:
def __str__(self) -> str:
return f"\"{self.title}\" by {', '.join([str(a) for a in self.artists])}"
def __repr__(self) -> str:
return self.__str__()
def get_metadata(self):
return self.metadata.get_all_metadata()