aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS22
-rw-r--r--configure.ac4
-rw-r--r--doc/idest.texi20
-rw-r--r--examples/settitle.scm6
-rw-r--r--scheme/dry-run.scm7
5 files changed, 39 insertions, 20 deletions
diff --git a/NEWS b/NEWS
index ef969c3..b01b065 100644
--- a/NEWS
+++ b/NEWS
@@ -1,13 +1,29 @@
-IdEst -- history of user-visible changes. 2011-08-01
-Copyright (C) 2009-2011 Sergey Poznyakoff
+IdEst -- history of user-visible changes. 2015-11-06
+Copyright (C) 2009-2011, 2015 Sergey Poznyakoff
See the end of file for copying conditions.
Please send bug reports to <bug-idest@gnu.org.ua>
+Version 2.0.90 (Git)
+
+* The --convert option can be used to remove unnecessary ID3 formats.
+
+For example, if the file input.mp3 contains both version 1 and 2 tags,
+the following will remove version 1 tags:
+
+ idest --convert=2 input.mp3
+
+* Fix processing of unknown frames.
+
+* Fix operation of setpic and pic modules with Guile 2.x.
+
+* Improve documentation
+
+
Version 2.0 "PW", 2011-08-01
* New option --info (-i)
idest --info shows information about input file structure.
@@ -227,13 +243,13 @@ Version 1.0, 2009-03-19
Initial release.
=========================================================================
Copyright information:
-Copyright (C) 2009, 2010, 2011 Sergey Poznyakoff
+Copyright (C) 2009-2011, 2015 Sergey Poznyakoff
Permission is granted to anyone to make or distribute verbatim copies
of this document as received, in any medium, provided that the
copyright notice and this permission notice are preserved,
thus giving the recipient permission to redistribute in turn.
diff --git a/configure.ac b/configure.ac
index 18f1de9..163f1ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,9 +1,9 @@
# -*- Autoconf -*-
# This file is part of Idest.
-# Copyright (C) 2009-2011 Sergey Poznyakoff
+# Copyright (C) 2009-2011, 2015 Sergey Poznyakoff
#
# Idest is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
@@ -13,13 +13,13 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Idest. If not, see <http://www.gnu.org/licenses/>.
AC_PREREQ(2.61)
-AC_INIT([idest], [2.0], [bug-idest@gnu.org.ua])
+AC_INIT([idest], [2.0.90], [bug-idest@gnu.org.ua])
AC_CONFIG_SRCDIR([src/idest.h])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([1.9 gnits tar-ustar std-options silent-rules])
# Enable silent rules by default:
AM_SILENT_RULES([yes])
diff --git a/doc/idest.texi b/doc/idest.texi
index 68c939f..ae725f1 100644
--- a/doc/idest.texi
+++ b/doc/idest.texi
@@ -29,13 +29,13 @@
@direntry
* idest:: ID3 Edit and Scripting Tool
@end direntry
@end ifinfo
@copying
-Copyright @copyright{} 2009-2011 Sergey Poznyakoff
+Copyright @copyright{} 2009-2011, 2015 Sergey Poznyakoff
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, and without restrictions as to the Front and
Back-Cover texts. A copy of the license is included in the section
@@ -1081,16 +1081,16 @@ $ idest --script settitle *.mp3
@section Format
@xopindex{format, described}
@dfn{Formats} are advanced scripting feature which allows for extending
@command{idest} output by writing an appropriate script in Scheme. A
format is invoked using the @option{--format} (@option{-H}) command
line option. The format name is given as argument to that option.
-Similarly to @option{--source}, the @option{--format} option stops
+Similarly to the @option{--source} option, the @option{--format} option stops
further argument processing and passes the rest of arguments to the
format module, which is supposed to remove its option arguments and
-leave only the input file names. For example:
+leave only input file names. For example:
@example
$ idest --format=framelist -Q -l *.mp3
@end example
@noindent
@@ -1368,13 +1368,13 @@ Show a short help summary
@end table
@node shortlist
@subsubsection shortlist: Display Short Information
The @samp{shortlist} format module is similar to the
@samp{shortlist.scm} example program, discussed in @ref{shortlist
-example}. It does not take any command line options, everything after
+example}. It does not take any command line options -- everything after
the format name is treated as file names:
@example
$ idest --format=shortlist *.mp3
dnr.mp3: Diamonds & Rust by Joan Baez, 1975
ams.mp3: Amsterdam, by Jacques Brel, 1968
@@ -1384,13 +1384,13 @@ ams.mp3: Amsterdam, by Jacques Brel, 1968
@section Batch
@dfn{Batch modules} or @dfn{batches} are @command{idest} module files
located in a set of predefined directories which apply a set of
modifications to the argument files. In other words, batches are
file-modifying counterpart of formats. A batch is invoked using the
@option{--batch} (@option{-B}) command line option. The batch name
-is given as argument to that option. Similarly to @option{--source}
+is given as argument to that option. Similarly to the @option{--source}
and @option{--format} options, the @option{--batch} option stops
further argument processing and passes the rest of arguments to the
batch module, which is supposed to remove its option arguments and
leave only the input file names. For example:
@example
@@ -1583,16 +1583,16 @@ special option for that: @option{--dry-run} (@option{-n}, e.g.:
@example
$ idest --dry-run --script settitle *.mp3
@end example
This will run your script as usual, but instead of applying the
changes to the input files, @command{idest} will verbosely print
-results of each invocation of @samp{idest-main}. Input files will
-then be opened in read-only mode.
+results of each invocation of @samp{idest-main}. When
+@option{--dry-run} is used, input files are opened in read-only mode.
-The same applies to testing batch files, e.g.:
+This option works with batch files as well, e.g.:
@example
$ idest --dry-run --batch delfrm *.mp3
@end example
Here is an example of the dry-run output, obtained from the command
@@ -1634,13 +1634,13 @@ reflect the @code{use-modules} clause at the beginning of
@subheading Implementation note
@findex dry-run.scm
The @samp{dry-run} mode is actually implemented as a usual
@command{idest} Guile script, named @file{dry-run.scm}. The
script is installed to the package script directory. Its
-source can be found in the subdirectory @file{example} of the
+source can be found in the subdirectory @file{scheme} of the
@command{idest} distribution.
@node Backups
@chapter Keeping Backup Copies
@xopindex{backup, described}
@@ -1867,13 +1867,13 @@ Print program version and copyright information.
Print a short usage message.
@end table
@node Reporting Bugs
@chapter How to Report a Bug
- Email bug reports to @email{bug-idest@@gnuorg.ua} (or
+ Email bug reports to @email{bug-idest@@gnu.org.ua} (or
@email{gray+idest@@gnu.org.ua}). Please include a detailed
description of the bug and information about the conditions
under which it occurs, so we can reproduce it.
@node Genre Codes
@appendix ID3 Genre Codes
diff --git a/examples/settitle.scm b/examples/settitle.scm
index cd43106..ae822ad 100644
--- a/examples/settitle.scm
+++ b/examples/settitle.scm
@@ -1,29 +1,29 @@
;; title.scm - set title (TIT2) frame based on the file name.
-;; Copyright (C) 2011 Sergey Poznyakoff
+;; Copyright (C) 2011, 2015 Sergey Poznyakoff
;; License GPLv3+: GNU GPL version 3 or later
;; <http://gnu.org/licenses/gpl.html>
;; This is free software: you are free to change and redistribute it.
;; There is NO WARRANTY, to the extent permitted by law.
(use-modules (ice-9 regex)
(srfi srfi-13))
(define (idest-main file frames)
(cond
- ((string-match "(.*)\\.mp3" file) =>
+ ((string-match "(.*/)?(.*)\\.mp3" file) =>
(lambda (match)
(cons
(cons "TIT2"
(list
(cons
'text
(string-map
(lambda (c)
(if (char=? c #\_) #\space c))
- (match:substring match 1)))))
+ (match:substring match 2)))))
;;
(filter
(lambda (elt)
(not (string=? (car elt) "TIT2")))
frames))))
(else
diff --git a/scheme/dry-run.scm b/scheme/dry-run.scm
index a77f3d8..2cabc7d 100644
--- a/scheme/dry-run.scm
+++ b/scheme/dry-run.scm
@@ -1,9 +1,9 @@
;; dry-run.scm - run a script and show the frames it produces.
;; This file is part of Idest
-;; Copyright (C) 2011 Sergey Poznyakoff
+;; Copyright (C) 2011, 2015 Sergey Poznyakoff
;; Idest is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.
;;
;; Idest is distributed in the hope that it will be useful,
@@ -18,13 +18,16 @@
(progname (car cmd)))
(set! %load-hook (lambda (filename)
(format #t "~A: loading ~a ...\n"
progname filename)))
(cond
((< (length cmd) 3)
- (format (current-error-port) "usage: idest -S ~A SCRIPT FILE...~%"
+ (format (current-error-port) "usage: idest -S ~A SCRIPT FILE...
+
+Normally you don't need to run this program manually. Instead please
+use: idest --dry-run [SCRIPTING OPTIONS]~%"
progname)
(exit 1))
(else
(let ((file-name (list-ref cmd 1)))
(set-program-arguments (cons (car cmd) (list-tail cmd 2)))
(primitive-load-path file-name)

Return to:

Send suggestions and report system problems to the System administrator.