diff options
author | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2024-10-02 23:21:43 +0200 |
---|---|---|
committer | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2024-10-02 23:21:43 +0200 |
commit | 7df09f8b146ae7fb091787770fe5681381164f0e (patch) | |
tree | 0310d8dad1d0c6198d68d13b22030db3c5e8b28f /scripts/populate/api.py | |
parent | 0972fa6eab8c9111311f082ba8abfdc6b4a40945 (diff) |
fix database setup
Diffstat (limited to 'scripts/populate/api.py')
-rw-r--r-- | scripts/populate/api.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/populate/api.py b/scripts/populate/api.py index 5cc24d3..9133c25 100644 --- a/scripts/populate/api.py +++ b/scripts/populate/api.py @@ -14,8 +14,9 @@ def download_albums(albums): def get_album_json(artist_name, album_name): - if os.path.isfile(parser.getLink(album_name)): + link = parser.get_link(album_name) + if os.path.isfile(link): return album = genius.search_album(album_name, artist_name) - album.save_lyrics() + album.save_lyrics(f"{link}") |