fck
This commit is contained in:
parent
5be0b3be64
commit
131c9cdd47
@ -107,4 +107,4 @@ def cli(start_at: int = 0, only_lyrics: bool = False):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
cli(start_at=3, only_lyrics=False)
|
cli(start_at=3, only_lyrics=True)
|
||||||
|
@ -44,7 +44,9 @@ def get_lyrics(file_name):
|
|||||||
|
|
||||||
|
|
||||||
def fetch_single_lyrics(row: dict):
|
def fetch_single_lyrics(row: dict):
|
||||||
if "file" in row:
|
if "file" not in row:
|
||||||
|
return
|
||||||
|
if row["file"] is None:
|
||||||
return
|
return
|
||||||
file_ = os.path.join(MUSIC_DIR, row['file'])
|
file_ = os.path.join(MUSIC_DIR, row['file'])
|
||||||
artist = row['artists'][0]['name']
|
artist = row['artists'][0]['name']
|
||||||
|
Loading…
Reference in New Issue
Block a user