lyrics obj
This commit is contained in:
parent
cb2f9f180e
commit
a99f794174
@ -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
|
||||
|
7
src/music_kraken/database/lyrics.py
Normal file
7
src/music_kraken/database/lyrics.py
Normal 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
|
Loading…
Reference in New Issue
Block a user