chiark
/
gitweb
/
~mdw
/
autoys
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
gremlin/gremlin.in: Fix incorrect indentation. Oops.
[autoys]
/
make-multidisc-playlists
/
m3u-extinf
1
#! /usr/bin/python
2
3
from sys import argv
4
import mutagen as MG
5
__import__(MG.__name__, fromlist = ['mp3', 'easyid3'])
6
7
f, = argv[1:]
8
9
t = MG.File(f)
10
if type(t) == MG.mp3.MP3:
11
t = MG.mp3.MP3(f, ID3 = MG.easyid3.EasyID3)
12
13
print (u'#EXTINF %d,%s - %s' % (-1, t['artist'][0], t['title'][0])).encode('utf-8')