Very interesting, thanks! I think, this will solve at least part of my problems!

On 23/11/24 14:32, Fran Burstall (Gmail) wrote:
The following little function works for me: I run it after new music has arrived.

(defun emms-add-files-to-cache ()
     "Search music library for new tracks and add them to the cache."
     (interactive)
     (mapc (lambda (file) (emms-track 'file file))
        (seq-filter #'(lambda (path) (not (gethash path emms-cache-db)))
          (directory-files-recursively "/media/shared/music"  "\.mp3$\ \|\.wav$\\|\.aif$\\|\.ogg"))))


---Fran


Reply via email to