Commit | Line | Data |
---|---|---|
583b7e4a MW |
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') |