diff --git a/src/__main__.py b/src/__main__.py index 66fceca..84426ae 100644 --- a/src/__main__.py +++ b/src/__main__.py @@ -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) diff --git a/src/lyrics_.py b/src/lyrics_.py index 89df530..c6fe633 100644 --- a/src/lyrics_.py +++ b/src/lyrics_.py @@ -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']