This commit is contained in:
IlyaShurupov 2024-07-11 13:36:53 +03:00
parent e044b7ffd4
commit b2e582c566
2 changed files with 7 additions and 4 deletions

View file

@ -47,6 +47,9 @@ def update_local_library(root_dir):
match track['type']:
case ".mp3":
tag = eyed3.load(abs_path).tag
if not tag:
print(f"Invalid mp3 header {abs_path}")
else:
track['artist'] = tag.artist
track['name'] = tag.title
track['album'] = tag.album