From 9eaa05274462c4f8db08bd21bdf2460c4aaeef2c Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Thu, 13 Sep 2012 15:38:30 -0400 Subject: [PATCH] FakeMutagen inherits from dict --- python_apps/media-monitor2/media/monitor/metadata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python_apps/media-monitor2/media/monitor/metadata.py b/python_apps/media-monitor2/media/monitor/metadata.py index bb26485ef..d1bd9c0be 100644 --- a/python_apps/media-monitor2/media/monitor/metadata.py +++ b/python_apps/media-monitor2/media/monitor/metadata.py @@ -41,7 +41,7 @@ airtime2mutagen = { "MDATA_KEY_COPYRIGHT" : "copyright", } -class FakeMutagen(object): +class FakeMutagen(dict): """ Need this fake mutagen object so that airtime_special functions return a proper default value instead of throwing an exceptions for files that @@ -51,6 +51,7 @@ class FakeMutagen(object): self.path = path self.mime = True self.info = True + dict.__init__(self) # 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