|
@@ -137,7 +137,7 @@ class Publish:
|
|
|
os.rmdir(local_file)
|
|
|
Common.logger(log_type).info("remove local file dir = {} success", local_file)
|
|
|
|
|
|
- local_file_path = '.\\videos'
|
|
|
+ local_file_path = './videos'
|
|
|
video_file = 'video'
|
|
|
image_file = 'image'
|
|
|
info_file = 'info'
|
|
@@ -194,7 +194,7 @@ class Publish:
|
|
|
# 单个视频文件夹下的所有视频文件
|
|
|
for fi in dir_files:
|
|
|
# 视频文件夹下的所有文件路径
|
|
|
- fi_path = fi_d + '\\' + fi
|
|
|
+ fi_path = fi_d + '/' + fi
|
|
|
Common.logger(log_type).info('dir fi_path = {}', fi_path)
|
|
|
# 读取 info.txt,赋值给 data
|
|
|
if cls.info_file in fi:
|
|
@@ -221,7 +221,7 @@ class Publish:
|
|
|
# 刷新数据
|
|
|
dir_files = os.listdir(fi_d)
|
|
|
for fi in dir_files:
|
|
|
- fi_path = fi_d + '\\' + fi
|
|
|
+ fi_path = fi_d + '/' + fi
|
|
|
Common.logger(log_type).info('dir fi_path = {}', fi_path)
|
|
|
# 上传oss
|
|
|
if cls.video_file in fi:
|