diff --git a/boofilsic/settings.py b/boofilsic/settings.py index ff47bd9f..9f901db5 100644 --- a/boofilsic/settings.py +++ b/boofilsic/settings.py @@ -310,6 +310,10 @@ TMDB_API3_KEY = "***REMOVED***" # Google Books API Key GOOGLE_API_KEY = "***REMOVED***" +# Discogs API Key +# How to get: a personal access token from https://www.discogs.com/settings/developers +DISCOGS_API_KEY = "***REMOVED***" + # IGDB IGDB_CLIENT_ID = "deadbeef" IGDB_CLIENT_SECRET = "deadbeef" diff --git a/catalog/sites/discogs.py b/catalog/sites/discogs.py index 4375d09d..51c08adc 100644 --- a/catalog/sites/discogs.py +++ b/catalog/sites/discogs.py @@ -122,7 +122,7 @@ def get_discogs_data(data_type: str, discogs_id): if data_type not in ("releases", "masters"): raise ValueError("data_type can only be in ('releases' or masters')") user_agent_string = "Neodb/0.1" - user_token = settings.DISCOGS_TOKEN + user_token = settings.DISCOGS_API_KEY headers = { "User-Agent": user_agent_string, "Authorization": f"Discogs token={user_token}",