File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change 28
28
:when (executable-find +mpv-command)
29
29
:custom
30
30
(empv-invidious-instance " https://invidious.privacydev.net/api/v1" ) ; Pick from: https://api.invidious.io
31
- (empv-audio-dir " ~/Music" )
32
- (empv-video-dir " ~/Videos" )
33
- (empv-max-directory-search-depth 6 )
34
- (empv-radio-log-file (expand-file-name " logged-radio-songs.org" org-directory))
31
+ (empv-radio-log-file (concat org-directory " logged-radio-songs.org" ))
35
32
(empv-audio-file-extensions '(" webm" " mp3" " ogg" " wav" " m4a" " flac" " aac" " opus" ))
36
33
:config
37
34
(defun +empv--dl-playlist (playlist &optional dist)
43
40
#'identity ; Filter nils
44
41
(mapcar
45
42
(lambda (item )
46
- (when-let
47
- ((vid (when (string-match
48
- (rx (seq " watch?v=" (group-n 1 (one-or-more (or alnum " _" " -" )))))
49
- item)
50
- (match-string 1 item))))
51
- vid))
43
+ (and (string-match (rx (seq " watch?v=" (group-n 1 (* (any alnum " _" " -" ))))) item)
44
+ (match-string 1 item)))
52
45
playlist)))
53
46
(proc-name " empv-yt-dlp" ))
54
47
(unless (zerop (length vids))
55
48
(message " Downloading %d songs to %s " (length vids) default-directory)
56
- (when (get-process proc-name)
57
- (kill-process proc-name))
49
+ (when (get-process proc-name) (kill-process proc-name))
58
50
(make-process :name proc-name
59
51
:buffer (format " *%s * " proc-name)
60
52
:command (append
You can’t perform that action at this time.
0 commit comments