...
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user