Update.
[elisp.git] / media-mplayer.el
index c0df300..46acbb3 100644 (file)
@@ -94,8 +94,8 @@ load Emacs less. Nil means no timing."
                               (let ((s (match-string 1 param)))
                                 (concat (if (string= s "")
                                             "<no title>"
-                                          ;; (encode-coding-string s 'latin-1)
-                                          s
+                                          (encode-coding-string s 'latin-1)
+                                          ;; s
                                           )
                                         " | "
                                         (format-time-string "%a %b %d %H:%M:%S")
@@ -109,6 +109,13 @@ load Emacs less. Nil means no timing."
                       (message "ICY Info \"%s\"" param)
                       )
 
+                    (when media/mplayer/capture-dir
+                      (let ((coding-system-for-write 'raw-text-unix))
+                        (with-temp-buffer
+                          (insert
+                           (concat media/current-song-in-stream "\n"))
+                          (write-region nil nil (concat media/mplayer/capture-dir "/log") t))))
+
                     (if (and media/current-song-in-stream media/current-information)
                         (media/show-current-information))
                     )