CC-3878: Recorded media file's track number is changed after restarting media-monitor
- fixed
This commit is contained in:
parent
f57d316b6c
commit
0ca45e343b
3 changed files with 12 additions and 7 deletions
|
@ -180,7 +180,8 @@ class AirtimeProcessEvent(ProcessEvent):
|
|||
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})
|
||||
is_recorded = self.mmc.is_parent_directory(pathname, self.config.recorded_directory)
|
||||
self.file_events.append({'filepath': pathname, 'mode': self.config.MODE_MODIFY, 'is_recorded_show': is_recorded})
|
||||
|
||||
# if change is detected on /etc/mtab, we check what mount(file system) was added/removed
|
||||
# and act accordingly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue