fix for songs that don't have genre

This commit is contained in:
Rafael Moraes 2024-10-31 13:45:08 -03:00
parent a67c81bd22
commit 3998b698e0

View File

@ -248,7 +248,7 @@ class DownloaderSong:
"disc": tags_raw["discNumber"], "disc": tags_raw["discNumber"],
"disc_total": tags_raw["discCount"], "disc_total": tags_raw["discCount"],
"gapless": tags_raw["gapless"], "gapless": tags_raw["gapless"],
"genre": tags_raw["genre"], "genre": tags_raw.get("genre"),
"genre_id": tags_raw["genreId"], "genre_id": tags_raw["genreId"],
"lyrics": lyrics_unsynced if lyrics_unsynced else None, "lyrics": lyrics_unsynced if lyrics_unsynced else None,
"media_type": 1, "media_type": 1,