Skip to content

Commit

Permalink
Fix playlist search
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfm committed Jan 15, 2025
1 parent 6f1bd00 commit aa806e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions smudge-playlist.el
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@
"Append PLAYLISTS to PAGE of the current playlist view."
(let (entries)
(dolist (playlist playlists)
(let ((user-id (smudge-api-get-playlist-owner-id playlist))
(playlist-name (smudge-api-get-item-name playlist)))
(when-let ((_ (hash-table-p playlist))
(user-id (smudge-api-get-playlist-owner-id playlist))
(playlist-name (smudge-api-get-item-name playlist)))
(push (list playlist
(vector (cons playlist-name
(list 'face 'link
Expand Down
2 changes: 1 addition & 1 deletion smudge-track.el
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ Default to sortin tracks by number when listing the tracks from an album."
"Append SONGS to the PAGE of track view."
(let (entries)
(dolist (song songs)
(when (smudge-api-is-track-playable song)
(when (and (hash-table-p song) (smudge-api-is-track-playable song))
(let* ((artist-name (smudge-api-get-track-artist-name song))
(album (or (smudge-api-get-track-album song) smudge-selected-album))
(album-name (smudge-api-get-item-name album))
Expand Down

0 comments on commit aa806e8

Please sign in to comment.