CC-3750Media Library->Edit Metadata: media-monitor throw exception when trying to edit metadata with non-ascii characters

-Improved save metadata function
This commit is contained in:
Martin Konecny 2012-05-04 15:49:33 -04:00
parent 906b6e8bd0
commit 676205bb00
3 changed files with 10 additions and 11 deletions

View file

@ -173,7 +173,7 @@ class AirtimeProcessEvent(ProcessEvent):
# update timestamp on create_dict for the entry with pathname as the key
if pathname in self.create_dict:
self.create_dict[pathname] = time.time()
if not dir and not self.mmc.is_parent_directory(pathname, self.config.organize_directory) and self.mmc.is_readable(pathname, False):
if not dir and not self.mmc.is_parent_directory(pathname, self.config.organize_directory):
self.logger.info("Modified: %s", pathname)
if self.mmc.is_audio_file(name):
self.file_events.append({'filepath': pathname, 'mode': self.config.MODE_MODIFY})