CC-2582 : Files with a tracknumber that isn't actually a tracknumber don't get imported properly

adding more metadata checks so it won't have a database insertion issue.
This commit is contained in:
Naomi Aro 2011-07-22 12:54:42 +02:00
parent 276fa8d99e
commit d3776f4ea9
4 changed files with 15 additions and 30 deletions

View file

@ -67,14 +67,11 @@ class AirtimeProcessEvent(ProcessEvent):
new_filepath = self.mmc.organize_new_file(pathname)
return new_filepath
else:
self.logger.debug("setting file permissions")
self.mmc.set_needed_file_permissions(pathname, dir)
self.logger.debug("checking if recorded")
if self.mmc.is_parent_directory(pathname, self.config.recorded_directory):
is_recorded = True
else :
is_recorded = False
self.logger.debug("appending event")
self.file_events.append({'mode': self.config.MODE_CREATE, 'filepath': pathname, 'is_recorded_show': is_recorded})
else: