CC-2530: Media monitor:Dont use hidden files
-addressed issues raised.
This commit is contained in:
parent
1416274882
commit
7c98d90e5e
4 changed files with 53 additions and 39 deletions
|
@ -19,6 +19,8 @@ from airtimefilemonitor.mediaconfig import AirtimeMediaConfig
|
|||
|
||||
class AirtimeProcessEvent(ProcessEvent):
|
||||
|
||||
timestamp_file = "/var/tmp/airtime/last_index"
|
||||
|
||||
def my_init(self, queue, airtime_config=None, wm=None):
|
||||
"""
|
||||
Method automatically called from ProcessEvent.__init__(). Additional
|
||||
|
@ -394,7 +396,7 @@ class AirtimeProcessEvent(ProcessEvent):
|
|||
return stdout.splitlines()
|
||||
|
||||
def touch_index_file(self):
|
||||
open("/var/tmp/airtime/.last_index", "w")
|
||||
open(self.timestamp_file, "w")
|
||||
|
||||
def notifier_loop_callback(self, notifier):
|
||||
if len(self.file_events) > 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue