Fixed reference error between filename and position handler.
This commit is contained in:
parent
6104fe4181
commit
16805cb461
|
@ -151,12 +151,12 @@
|
||||||
(, filename "" "" "" "" 1))))
|
(, filename "" "" "" "" 1))))
|
||||||
(ap-map (apply fetch-tag it) filenames))
|
(ap-map (apply fetch-tag it) filenames))
|
||||||
|
|
||||||
(defn derive-tags [filenames artist-deriver album-deriver genre-deriver title-deriver]
|
(defn derive-tags [mp3s artist-deriver album-deriver genre-deriver title-deriver]
|
||||||
(defn derive-tag [filename]
|
(defn derive-tag [mp3]
|
||||||
(let [[file (get filename 0)]]
|
(let [[file (get mp3 5)]]
|
||||||
(, (get filename 0) (artist-deriver (get filename 1) file) (album-deriver (get filename 2) file)
|
(, (get mp3 0) (artist-deriver (get mp3 1) file) (album-deriver (get mp3 2) file)
|
||||||
(genre-deriver (get filename 3) file) (title-deriver (get filename 4) file) (get filename 5))))
|
(genre-deriver (get mp3 3) file) (title-deriver (get mp3 4) file) (get mp3 5))))
|
||||||
(ap-map (derive-tag it) filenames))
|
(ap-map (derive-tag it) mp3s))
|
||||||
|
|
||||||
; For all the songs, analyze a consist entry (usually genre and album
|
; For all the songs, analyze a consist entry (usually genre and album
|
||||||
; names), and return the one with the most votes.
|
; names), and return the one with the most votes.
|
||||||
|
@ -233,6 +233,6 @@
|
||||||
(cond [(.has_key options "help") (print-help)]
|
(cond [(.has_key options "help") (print-help)]
|
||||||
[(.has_key options "version") (print-version)]
|
[(.has_key options "version") (print-version)]
|
||||||
[true (suggest options)]))
|
[true (suggest options)]))
|
||||||
(catch [err Exception]
|
(catch [err getopt.GetoptError]
|
||||||
(print (str err))
|
(print (str err))
|
||||||
(print-help))))
|
(print-help))))
|
||||||
|
|
Loading…
Reference in New Issue