emms-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is emms-cache-sync really working without problems?


From: Igor Sosa Mayor
Subject: Re: Is emms-cache-sync really working without problems?
Date: Sat, 23 Nov 2024 23:32:04 +0100
User-agent: Mozilla Thunderbird

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

[Prev in Thread] Current Thread [Next in Thread]