This commit is contained in:
Mr Chen 2019-01-24 17:11:09 +08:00
parent 9c856ffae4
commit 1bc95a4eb7
2 changed files with 15 additions and 1 deletions

View File

@ -13,4 +13,11 @@ QB_PWD = adminadmin
[file]
FILE_TO=/www/tmp
FILE_TO={$SERVER_PATH}/tmp
FILE_TRANSFER_TO={$SERVER_PATH}/tmp
FILE_OWN=www
FILE_GROUP=www
[task]
TASK_RATE=4
TASK_COMPLETED_RATE=10

View File

@ -48,6 +48,9 @@ QB_PWD = cp.get(section_qb, "QB_PWD")
section_file = cp.sections()[2]
FILE_TO = cp.get(section_file, "FILE_TO")
FILE_TRANSFER_TO = cp.get(section_file, "FILE_TRANSFER_TO")
FILE_OWN = cp.get(section_file, "FILE_OWN")
FILE_GROUP = cp.get(section_file, "FILE_GROUP")
class downloadBT(Thread):
@ -116,6 +119,10 @@ class downloadBT(Thread):
m3u8_file + ' -segment_time 5 ' + tofile
print cmd
data = self.execShell(cmd)
self.execShell('chown -R ' + FILE_OWN + ':' +
FILE_GROUP + ' ' + m3u8_dir)
print data
if data[0] != '':
print data