improved mp3/flac filter. use pstotext directly

This commit is contained in:
dockes
2008-10-09 09:21:38 +00:00
parent bfc6512d24
commit 1b97b96dea
3 changed files with 47 additions and 19 deletions
+2 -3
View File
@@ -1,5 +1,5 @@
#!/bin/sh
# @(#$Id: rclid3,v 1.3 2008-10-08 08:27:34 dockes Exp $ (C) 2004 J.F.Dockes
# @(#$Id: rclid3,v 1.4 2008-10-09 09:21:38 dockes Exp $ (C) 2004 J.F.Dockes
#================================================================
# rclid3
# Handle audio files for recoll. This uses id3info to extract tags
@@ -84,8 +84,6 @@ echo '<html><head>'
#echo '<title>' "$title" '</title>'
echo '<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">'
nocaptionexp='s/===.*://'
if test X$RECOLL_FILTER_FORPREVIEW = Xyes ; then
echo '</head><body><pre>'
id3info "$infile" | \
@@ -104,6 +102,7 @@ id3info "$infile" | awk -F: \
for (i = 2; i <=NF; i++) {
value = value " " $i
}
sub("^ +", "", value)
sub("&", "&amp;", value)
sub("\"", "&quot;", value)
sub("<", "&lt;", value)