|
@@ -380,7 +380,7 @@ def notify_group(msg):
|
|
r = requests.post("https://notify-api.line.me/api/notify",headers=headers, params=params)
|
|
r = requests.post("https://notify-api.line.me/api/notify",headers=headers, params=params)
|
|
|
|
|
|
def gen_video(name_hash,name,text_content, image_urls,avatar):
|
|
def gen_video(name_hash,name,text_content, image_urls,avatar):
|
|
- c = rpyc.connect("localhost", 8878)
|
|
|
|
|
|
+ c = rpyc.connect("localhost", 8858)
|
|
c._config['sync_request_timeout'] = None
|
|
c._config['sync_request_timeout'] = None
|
|
remote_svc = c.root
|
|
remote_svc = c.root
|
|
my_answer = remote_svc.call_video(name_hash,name,text_content, image_urls,avatar) # method call
|
|
my_answer = remote_svc.call_video(name_hash,name,text_content, image_urls,avatar) # method call
|
|
@@ -388,7 +388,7 @@ def gen_video(name_hash,name,text_content, image_urls,avatar):
|
|
os.remove(tmp_video_dir+name_hash+'.mp4')
|
|
os.remove(tmp_video_dir+name_hash+'.mp4')
|
|
|
|
|
|
def gen_video_eng(name_hash,name,text_content, image_urls,sub_titles,avatar):
|
|
def gen_video_eng(name_hash,name,text_content, image_urls,sub_titles,avatar):
|
|
- c = rpyc.connect("localhost", 8878)
|
|
|
|
|
|
+ c = rpyc.connect("localhost", 8858)
|
|
c._config['sync_request_timeout'] = None
|
|
c._config['sync_request_timeout'] = None
|
|
remote_svc = c.root
|
|
remote_svc = c.root
|
|
my_answer = remote_svc.call_video_eng(name_hash,name,text_content, image_urls,sub_titles,avatar) # method call
|
|
my_answer = remote_svc.call_video_eng(name_hash,name,text_content, image_urls,sub_titles,avatar) # method call
|
|
@@ -417,7 +417,7 @@ def gen_video_queue(name_hash,name,text_content, image_urls,avatar):
|
|
top1 = first(db.query('SELECT * FROM video_queue'))
|
|
top1 = first(db.query('SELECT * FROM video_queue'))
|
|
try:
|
|
try:
|
|
db.query('UPDATE video_queue_status SET status = 1;')
|
|
db.query('UPDATE video_queue_status SET status = 1;')
|
|
- c = rpyc.connect("localhost", 8878)
|
|
|
|
|
|
+ c = rpyc.connect("localhost", 8858)
|
|
c._config['sync_request_timeout'] = None
|
|
c._config['sync_request_timeout'] = None
|
|
remote_svc = c.root
|
|
remote_svc = c.root
|
|
my_answer = remote_svc.call_video(top1['name_hash'],top1['name'],top1['text_content'].split(','), top1['image_urls'].split(','),top1['avatar']) # method call
|
|
my_answer = remote_svc.call_video(top1['name_hash'],top1['name'],top1['text_content'].split(','), top1['image_urls'].split(','),top1['avatar']) # method call
|
|
@@ -455,7 +455,7 @@ def gen_video_queue_eng(name_hash,name,text_content, image_urls,sub_titles,avata
|
|
top1 = first(db.query('SELECT * FROM video_queue'))
|
|
top1 = first(db.query('SELECT * FROM video_queue'))
|
|
try:
|
|
try:
|
|
db.query('UPDATE video_queue_status SET status = 1;')
|
|
db.query('UPDATE video_queue_status SET status = 1;')
|
|
- c = rpyc.connect("localhost", 8878)
|
|
|
|
|
|
+ c = rpyc.connect("localhost", 8858)
|
|
c._config['sync_request_timeout'] = None
|
|
c._config['sync_request_timeout'] = None
|
|
remote_svc = c.root
|
|
remote_svc = c.root
|
|
my_answer = remote_svc.call_video_eng(top1['name_hash'],top1['name'],top1['text_content'].split(','), top1['image_urls'].split(','),top1['subtitles'].split(','),top1['avatar']) # method call
|
|
my_answer = remote_svc.call_video_eng(top1['name_hash'],top1['name'],top1['text_content'].split(','), top1['image_urls'].split(','),top1['subtitles'].split(','),top1['avatar']) # method call
|