repo.or.cz
/
audiocatalog.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
AudioDB class changes
[audiocatalog.git]
/
src
/
id3_helper.py
blob
6af74a5af6eea20ac9bdddf27fe24683c56fa2d9
1
from
mutagen
.
easyid3
import
EasyID3
2
3
class
ID3Reader
:
4
def
__init__
(
self
,
filename
):
5
self
.
id3
=
EasyID3
(
filename
)
6
7
def
get_artist_title
():
8
return
self
.
id3
[
"artist"
][
0
]
9
10
def
get_album_title
():
11
return
self
.
id3
[
"album"
][
0
]
12
13