Merge branch '2.4.x'
Conflicts: python_apps/pypo/pypopush.py python_apps/pypo/schedule/pypofetch.py python_apps/pypo/schedule/pypofile.py python_apps/pypo/schedule/pypoliqqueue.py
This commit is contained in:
commit
586bdf99e9
71 changed files with 5253 additions and 4614 deletions
|
@ -76,14 +76,6 @@ class PypoFile(Thread):
|
|||
self.logger.debug("copying from %s to local cache %s" % (src, dst))
|
||||
try:
|
||||
|
||||
"""
|
||||
List file as "ready" before it starts copying because by the
|
||||
time Liquidsoap is ready to play this file, it should have at
|
||||
least started copying (and can continue copying while
|
||||
Liquidsoap reads from the beginning of the file)
|
||||
"""
|
||||
media_item['file_ready'] = True
|
||||
|
||||
"""
|
||||
copy will overwrite dst if it already exists
|
||||
"""
|
||||
|
@ -91,6 +83,8 @@ class PypoFile(Thread):
|
|||
|
||||
#make file world readable
|
||||
os.chmod(dst, stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)
|
||||
|
||||
media_item['file_ready'] = True
|
||||
except Exception, e:
|
||||
self.logger.error("Could not copy from %s to %s" % (src, dst))
|
||||
self.logger.error(e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue