diff --git a/spotisub/constants.py b/spotisub/constants.py index 9f99e3c..ea6b051 100644 --- a/spotisub/constants.py +++ b/spotisub/constants.py @@ -4,7 +4,7 @@ # Configuration constants ARTIST_GEN_SCHED = "ARTIST_GEN_SCHED" -ARTIST_TOP_GEN_SCHED = "ARTIST_GEN_SCHED" +ARTIST_TOP_GEN_SCHED = "ARTIST_TOP_GEN_SCHED" EXCLUDED_WORDS = "EXCLUDED_WORDS" ITEMS_PER_PLAYLIST = "ITEMS_PER_PLAYLIST" LIDARR_BASE_API_PATH = "LIDARR_BASE_API_PATH" diff --git a/spotisub/generator.py b/spotisub/generator.py index 270dab7..4595912 100644 --- a/spotisub/generator.py +++ b/spotisub/generator.py @@ -84,7 +84,7 @@ def scan_user_playlists(offset=0): playlist_result = sp.current_user_playlists(limit=50, offset=offset) for item in playlist_result['items']: - if item['name'] is not None and item['name'].strip() != '': + if item is not None and item['name'] is not None and item['name'].strip() != '': playlist_info = {} playlist_info["name"] = item['name'].strip() playlist_info["spotify_uri"] = item["uri"]