.gitignore: Ignore another generated makefile.
[autoys] / make-multidisc-playlists / m3u-extinf
CommitLineData
583b7e4a
MW
1#! /usr/bin/python
2
3from sys import argv
4import mutagen as MG
5__import__(MG.__name__, fromlist = ['mp3', 'easyid3'])
6
7f, = argv[1:]
8
9t = MG.File(f)
10if type(t) == MG.mp3.MP3:
11 t = MG.mp3.MP3(f, ID3 = MG.easyid3.EasyID3)
12
13print (u'#EXTINF %d,%s - %s' % (-1, t['artist'][0], t['title'][0])).encode('utf-8')