diff --git a/python_apps/media-monitor/airtimefilemonitor/mediamonitorcommon.py b/python_apps/media-monitor/airtimefilemonitor/mediamonitorcommon.py index f526f2616..3da4abcea 100644 --- a/python_apps/media-monitor/airtimefilemonitor/mediamonitorcommon.py +++ b/python_apps/media-monitor/airtimefilemonitor/mediamonitorcommon.py @@ -265,16 +265,8 @@ class MediaMonitorCommon: def scan_dir_for_new_files(self, dir): command = 'find "%s" -type f -iname "*.ogg" -o -iname "*.mp3" -readable' % dir.replace('"', '\\"') self.logger.debug(command) - stdout = self.exec_command(command).decode("UTF-8") + stdout = self.exec_command(command) - try: - """ - File name charset encoding is UTF-8. - """ - stdout = stdout.decode("UTF-8") - except Exception, e: - self.logger.error("Could not decode %s using UTF-8" % stdout) - return stdout.splitlines() def touch_index_file(self):