CC-5182
Liquidsoap: Sometime the tracks in schedule cannot be played
This commit is contained in:
parent
50ece038c2
commit
1e9829e85c
|
@ -63,14 +63,6 @@ class PypoFile(Thread):
|
||||||
self.logger.debug("copying from %s to local cache %s" % (src, dst))
|
self.logger.debug("copying from %s to local cache %s" % (src, dst))
|
||||||
try:
|
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
|
copy will overwrite dst if it already exists
|
||||||
"""
|
"""
|
||||||
|
@ -78,6 +70,8 @@ class PypoFile(Thread):
|
||||||
|
|
||||||
#make file world readable
|
#make file world readable
|
||||||
os.chmod(dst, stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)
|
os.chmod(dst, stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)
|
||||||
|
|
||||||
|
media_item['file_ready'] = True
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
self.logger.error("Could not copy from %s to %s" % (src, dst))
|
self.logger.error("Could not copy from %s to %s" % (src, dst))
|
||||||
self.logger.error(e)
|
self.logger.error(e)
|
||||||
|
|
Loading…
Reference in New Issue