632a1497a1f288ec5dc41fad8980fdfcea330141 — Alex McGrath 2 months ago 429674a
Add option to configure the number of albums in an album list
1 files changed, 9 insertions(+), 2 deletions(-)

M subsonic.el
M subsonic.el => subsonic.el +9 -2
@@ 84,6 84,11 @@ Used to find the correct authinfo entry."
  :type 'boolean
  :group 'subsonic)

(defcustom subsonic-album-list-count 30
  "Number of albums to display in random/newest albums etc."
  :type 'integer
  :group 'subsonic)

(defvar subsonic-mpv--volume subsonic-default-volume)
(defvar subsonic-mpv--process nil)
(defvar subsonic-mpv--queue nil)

@@ 449,8 454,10 @@ subsonic, and ensure subsonic-host is set correctly")))
  "Refresh the albums list for a given albumlist TYPE."
  (setq tabulated-list-entries
         (subsonic-get-json (subsonic-build-url "/getAlbumList2.view" `(("type" . ,type)
                                                                        ("size" . "50"))))))
         (subsonic-get-json (subsonic-build-url
							 `(("type" . ,type)
                               ("size" . ,(number-to-string subsonic-album-list-count)))))))
  (subsonic-get-images tabulated-list-entries 2 (current-buffer)))

(defun subsonic-open-tracks ()