lyrics obj

This commit is contained in:
Lars Noack 2022-11-25 08:29:18 +01:00
parent cb2f9f180e
commit a99f794174
2 changed files with 12 additions and 0 deletions

View File

@ -235,6 +235,11 @@ WHERE '{track_id}' == id;
self.cursor.execute(query)
self.connection.commit()
def set_field_of_song(self, track_id: str, key: str, value: str):
query = f"UPDATE track SET {key} = ? WHERE '{track_id}' == id;"
self.cursor.execute(query, (value, ))
self.connection.commit()
def set_download_data(self, track_id: str, url: str, src: str):
query = f"""
UPDATE track

View File

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