radio: refactor LRC fetching to directly use asyncio for backgrounding, and add null check for album art in RadioUtil
This commit is contained in:
@@ -504,7 +504,7 @@ class RadioUtil:
|
||||
track_id,
|
||||
)
|
||||
tagger = music_tag.load_file(file_path)
|
||||
album_art = tagger["artwork"].first.data
|
||||
album_art = tagger["artwork"].first.data if tagger else None
|
||||
with sqlite3.connect(self.album_art_db_path, timeout=2) as db_conn:
|
||||
db_cursor = db_conn.execute(
|
||||
"INSERT OR IGNORE INTO album_art (track_id, album_art) VALUES(?, ?)",
|
||||
|
Reference in New Issue
Block a user