CC-3849: PlaylistLibrary->Edit Metadata: The deletion of metadata entries has no effect after saving

-fixed
This commit is contained in:
denise 2012-06-01 16:56:07 -04:00
parent e3bacba39b
commit c521e3c545
1 changed files with 5 additions and 3 deletions

View File

@ -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: