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