[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[abcde] Bug#114851: allow for extra command to be run after tagging114851@bugs.debian.org



Package: abcde
Version: 2.0-1
Severity: wishlist

Since id3lib is broken, it changes the mode of tagged files to 0600. If
abcde would implement a arbitrary command to be executed after tagging,
this could be solved. In my abcde.conf I have:

POSTTAG="chmod 644"

It is used with this patch:

*** /usr/bin/abcde	Thu Aug 16 00:35:25 2001
--- /home/richard/bin/abcde	Mon Oct  8 08:38:04 2001
***************
*** 209,215 ****
  # id3 tags a filename
  # variables used:
  # TRACKS, TRACKNAME, TRACKARTIST, TAGGER, TAGGEROPTS, COMMENT, DALBUM, DARTIST
! # (and temporarily) ID3TAGV
  do_tag ()
  {
  	COMMENTOUTPUT="$(eval echo ${COMMENT})"
--- 209,215 ----
  # id3 tags a filename
  # variables used:
  # TRACKS, TRACKNAME, TRACKARTIST, TAGGER, TAGGEROPTS, COMMENT, DALBUM, DARTIST
! # POSTTAG (and temporarily) ID3TAGV
  do_tag ()
  {
  	COMMENTOUTPUT="$(eval echo ${COMMENT})"
***************
*** 248,253 ****
--- 255,265 ----
  			mv "$ABCDETEMPDIR/track$1.uncommented.$OUTPUTTYPE" "$ABCDETEMPDIR/track$1.$OUTPUTTYPE"
  		fi
  	fi
+ 
+ 	# 10/7/2001 Richard van den Berg: allow for extra command after tagging
+ 	if [ "$POSTTAG" != "" ]; then
+ 		run_command '' $POSTTAG "$ABCDETEMPDIR/track$1.$OUTPUTTYPE"
+ 	fi
  }
  
  # do_encode [tracknumber] [hostname]
***************
*** 861,866 ****
--- 898,904 ----
  READNICE=10
  VARIOUSARTISTS=n
  VARIOUSARTISTSTYLE=forward
+ POSTTAG=''
  
  # program paths - defaults to checking your $PATH
  LAME=lame

To unsubscribe: echo unsubscribe | mail abcde-request@whimsica.lly.org