From 7df09f8b146ae7fb091787770fe5681381164f0e Mon Sep 17 00:00:00 2001 From: niliara-edu Date: Wed, 2 Oct 2024 23:21:43 +0200 Subject: fix database setup --- scripts/populate/api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts/populate/api.py') 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}") -- cgit v1.2.3