You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
select id,title,album,artist from items group by album having tracktotal!=count(track);
Shows Tracks which have missing lyrics
select id,title,album,artist from items where lyrics='';
If manually doing changes in the database make sure to do beet write
Find Lyrics That Are not In Any Default Sources (lyrics plugin)
In the environment where beets is installed install syncedlyrics (with pip)
Now you can run this script and add the missing lyrics
#add_lyrics.pyimportsqlite3importsyncedlyricsconn=sqlite3.connect(input("enter the path to musiclibrary.db file: "))
cur=conn.cursor()
cur.execute("select id,title,album,artist from items where lyrics=''")
lyrics_missing=cur.fetchall()
print("missing lyrics in: ",lyrics_missing)
fortrackinlyrics_missing:
lyrics=syncedlyrics.search(track[1],synced_only=True)
print(lyrics)
ifinput("is this lyrics ok? if not abort(y/n): ")=="y":
cur.execute("update items set lyrics = ? where title = ?",(lyrics,track[1]))
else:
conn.commit()
conn.close()
exit()
conn.commit()
conn.close()
Run beet write to update the files with the new lyrics