FakeMutagen inherits from dict
This commit is contained in:
parent
11ef613d1c
commit
9eaa052744
1 changed files with 2 additions and 1 deletions
|
@ -41,7 +41,7 @@ airtime2mutagen = {
|
||||||
"MDATA_KEY_COPYRIGHT" : "copyright",
|
"MDATA_KEY_COPYRIGHT" : "copyright",
|
||||||
}
|
}
|
||||||
|
|
||||||
class FakeMutagen(object):
|
class FakeMutagen(dict):
|
||||||
"""
|
"""
|
||||||
Need this fake mutagen object so that airtime_special functions return a
|
Need this fake mutagen object so that airtime_special functions return a
|
||||||
proper default value instead of throwing an exceptions for files that
|
proper default value instead of throwing an exceptions for files that
|
||||||
|
@ -51,6 +51,7 @@ class FakeMutagen(object):
|
||||||
self.path = path
|
self.path = path
|
||||||
self.mime = True
|
self.mime = True
|
||||||
self.info = True
|
self.info = True
|
||||||
|
dict.__init__(self)
|
||||||
|
|
||||||
# Some airtime attributes are special because they must use the mutagen object
|
# Some airtime attributes are special because they must use the mutagen object
|
||||||
# itself to calculate the value that they need. The lambda associated with each
|
# itself to calculate the value that they need. The lambda associated with each
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue