Merge branch 'master' of ssh://holtrop.homelinux.com/files
This commit is contained in:
commit
585b6ecfeb
10
bash_aliases
10
bash_aliases
@ -70,6 +70,16 @@ function prompt_ps1_svn_branch()
|
||||
alias ls='ls --color=auto'
|
||||
alias strip-cr="sed -e 's/\x0d//'"
|
||||
alias rip='abcde -x -p -o mp3:"-v -b160"'
|
||||
function rip-dvd()
|
||||
{
|
||||
name="$1"
|
||||
if [ "$name" == "" ]; then
|
||||
echo 'specify dvd name'
|
||||
else
|
||||
mplayer dvd://1 -v -dupstream -dumpfile "$name.vob"
|
||||
mencoder -ovc xvid -oac mp3lame -xvidencopts fixed_quant=4 -lameopts cbr:br=192:aq=1 -aid 128 -sid 0 -o "$name.avi" "$name.vob"
|
||||
fi
|
||||
}
|
||||
export LESS='Ri'
|
||||
HISTCONTROL='ignoreboth'
|
||||
HISTSIZE=5000
|
||||
|
20
id3guess
Executable file
20
id3guess
Executable file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
from subprocess import Popen, PIPE
|
||||
|
||||
sys.stdout.write('Artist: ')
|
||||
artist = sys.stdin.readline().strip()
|
||||
sys.stdout.write('Album: ')
|
||||
album = sys.stdin.readline().strip()
|
||||
sys.stdout.write('Year: ')
|
||||
year = sys.stdin.readline().strip()
|
||||
|
||||
for f in sorted(os.listdir('.')):
|
||||
m = re.match('(\d+)\s(.*)\.mp3', f, re.I)
|
||||
if m is not None:
|
||||
track, title = m.group(1, 2)
|
||||
sys.stdout.write('%s: Track "%s", Title "%s"\n' % (f, track, title))
|
||||
Popen(['id3tag', '-a', artist, '-A', album, '-y', year, '-t', track, '-s', title, f]).wait()
|
Loading…
x
Reference in New Issue
Block a user