Skip to content

Commit

Permalink
buugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
blastbeng committed Dec 6, 2024
1 parent b7c1bec commit 5fe0918
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spotisub/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion spotisub/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 5fe0918

Please sign in to comment.