HCoop
/
clinton
/
abcde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix swapped artist and album in abcddb-tool parse
[clinton/abcde.git]
/
abcddb-tool
diff --git
a/abcddb-tool
b/abcddb-tool
index
334486b
..
3701916
100755
(executable)
--- a/
abcddb-tool
+++ b/
abcddb-tool
@@
-120,8
+120,8
@@
of (disc-number . tag-value)"
;; Not exported CDDBGENRE intentionally, since it appears unused
(format out "DISCID=$'~A'~%DALBUM=$'~A'~%DARTIST=$'~A'~%CDYEAR=$'~A'~%"
(escape-for-shell (car (disc-query 'DISCID)))
;; Not exported CDDBGENRE intentionally, since it appears unused
(format out "DISCID=$'~A'~%DALBUM=$'~A'~%DARTIST=$'~A'~%CDYEAR=$'~A'~%"
(escape-for-shell (car (disc-query 'DISCID)))
- (escape-for-shell artist)
(escape-for-shell album)
(escape-for-shell album)
+ (escape-for-shell artist)
(escape-for-shell (car (disc-query 'YEAR))))
;; Store genre(s) in a bash array. mp3s will just have to live with
(escape-for-shell (car (disc-query 'YEAR))))
;; Store genre(s) in a bash array. mp3s will just have to live with
@@
-133,6
+133,13
@@
of (disc-number . tag-value)"
(map (lambda (ttitle) (list (1+ (first ttitle)) (escape-for-shell (second ttitle))))
(cddb-query-tracks cddb 'TITLE)))))
(map (lambda (ttitle) (list (1+ (first ttitle)) (escape-for-shell (second ttitle))))
(cddb-query-tracks cddb 'TITLE)))))
+(define (main args)
+ (cond ((string= (second args) "parse")
+ (call-with-input-file (third args)
+ (lambda (f) (cddb->export (read-cddb f)))))
+ (else
+ (apply execlp "cddb-tool" args))))
-
+(when (batch-mode?)
+ (exit (main (program-arguments))))
\ No newline at end of file