CC-1799 : Live Studio Playout from media library (pytagsfs)
-code cleanup, refactoring, and files moved from a watched-dir to a non-watched dir are now properly handled
This commit is contained in:
parent
8593b340de
commit
2be05a8004
5 changed files with 128 additions and 53 deletions
|
@ -19,7 +19,7 @@ class AirtimeMediaMonitorBootstrap():
|
|||
"""
|
||||
on bootup we want to scan all directories and look for files that
|
||||
weren't there or files that changed before media-monitor process
|
||||
went offline. We can do this by doing a hash of the directory metadata.
|
||||
went offline.
|
||||
"""
|
||||
def scan(self):
|
||||
directories = self.get_list_of_watched_dirs();
|
||||
|
@ -39,7 +39,7 @@ class AirtimeMediaMonitorBootstrap():
|
|||
|
||||
def check_for_diff(self, dir_id, dir):
|
||||
#set to hold new and/or modified files. We use a set to make it ok if files are added
|
||||
#twice. This is become some of the tests for new files return result sets that are not
|
||||
#twice. This is because some of the tests for new files return result sets that are not
|
||||
#mutually exclusive from each other.
|
||||
new_and_modified_files = set()
|
||||
removed_files = set()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue