This commit is contained in:
lars 2022-11-14 17:17:02 +01:00
parent 5be0b3be64
commit 131c9cdd47
2 changed files with 4 additions and 2 deletions

View File

@ -107,4 +107,4 @@ def cli(start_at: int = 0, only_lyrics: bool = False):
if __name__ == "__main__":
cli(start_at=3, only_lyrics=False)
cli(start_at=3, only_lyrics=True)

View File

@ -44,7 +44,9 @@ def get_lyrics(file_name):
def fetch_single_lyrics(row: dict):
if "file" in row:
if "file" not in row:
return
if row["file"] is None:
return
file_ = os.path.join(MUSIC_DIR, row['file'])
artist = row['artists'][0]['name']