Merge branch '2.1.x' into devel
This commit is contained in:
commit
001f0790f9
|
@ -35,6 +35,7 @@ $ccAcl->allow('G', 'index')
|
|||
->allow('G', 'schedule')
|
||||
->allow('G', 'dashboard')
|
||||
->allow('G', 'audiopreview')
|
||||
->allow('H', 'preference', 'is-import-in-progress')
|
||||
->allow('H', 'usersettings')
|
||||
->allow('H', 'plupload')
|
||||
->allow('H', 'library')
|
||||
|
@ -42,7 +43,7 @@ $ccAcl->allow('G', 'index')
|
|||
->allow('A', 'playouthistory')
|
||||
->allow('A', 'user')
|
||||
->allow('A', 'systemstatus')
|
||||
->allow('A', 'preference');
|
||||
->allow('A', 'preference', 'admin');
|
||||
|
||||
|
||||
$aclPlugin = new Zend_Controller_Plugin_Acl($ccAcl);
|
||||
|
|
|
@ -60,10 +60,14 @@ class PypoFile(Thread):
|
|||
except Exception, e:
|
||||
dst_exists = False
|
||||
|
||||
media_item['already_exist'] = False
|
||||
do_copy = False
|
||||
if dst_exists:
|
||||
if src_size != dst_size:
|
||||
do_copy = True
|
||||
else:
|
||||
self.logger.debug("file %s already exists in local cache as %s, skipping cpoying..." % (src, dst))
|
||||
media_item['already_exist'] = True
|
||||
else:
|
||||
do_copy = True
|
||||
|
||||
|
|
|
@ -344,7 +344,7 @@ class PypoPush(Thread):
|
|||
time.sleep(0.1)
|
||||
iter_num += 1
|
||||
|
||||
if media_item['started_copying']:
|
||||
if media_item['started_copying'] or media_item['already_exist']:
|
||||
self.telnet_to_liquidsoap(media_item)
|
||||
else:
|
||||
self.logger.warn("File %s did not become ready in less than 5 seconds. Skipping...", media_item['dst'])
|
||||
|
|
Loading…
Reference in New Issue