From c521e3c545e5a23db0135dd27c3d9e4a3c4474b7 Mon Sep 17 00:00:00 2001 From: denise Date: Fri, 1 Jun 2012 16:56:07 -0400 Subject: [PATCH] CC-3849: PlaylistLibrary->Edit Metadata: The deletion of metadata entries has no effect after saving -fixed --- .../media-monitor/airtimefilemonitor/airtimemetadata.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/python_apps/media-monitor/airtimefilemonitor/airtimemetadata.py b/python_apps/media-monitor/airtimefilemonitor/airtimemetadata.py index 3bf5891bb..35c1830e6 100644 --- a/python_apps/media-monitor/airtimefilemonitor/airtimemetadata.py +++ b/python_apps/media-monitor/airtimefilemonitor/airtimemetadata.py @@ -97,10 +97,12 @@ class AirtimeMetadata: if value is not None: value = unicode(value) + else: + value = unicode(''); - if len(value) > 0: - self.logger.debug("Saving key '%s' with value '%s' to file", key, value) - airtime_file[self.airtime2mutagen[key]] = value + #if len(value) > 0: + self.logger.debug("Saving key '%s' with value '%s' to file", key, value) + airtime_file[self.airtime2mutagen[key]] = value airtime_file.save() except Exception, e: