Skip to content

Commit 573e54f

Browse files
committed
[FEAT] 适配pdf课件类型
1 parent 5b2b6ed commit 573e54f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ZJYMain/look_video.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def study_record(session, info, class_id):
119119
sleep_randint = random.randint(5, 10)
120120
logging.info('\t\t\t\t\t\t学习课件中... 课程: %s 延时: %s 结果: %s', name, sleep_randint, resp_result)
121121
time.sleep(sleep_randint)
122-
elif file_type == "ppt" or file_type == "doc":
122+
elif file_type == "ppt" or file_type == "doc" or file_type == "pdf":
123123
total_num = get_url_pngs(session, file_url)
124124
resp_result = stu_process_cell_log(session, course_info_id, class_id, random.randint(12, 22), course_id,
125125
total_num)
@@ -134,6 +134,8 @@ def study_record(session, info, class_id):
134134
sleep_randint = random.randint(5, 10)
135135
logging.info('\t\t\t\t\t\t学习课件中... 课程: %s 延时: %s 结果: %s', name, sleep_randint, resp_result)
136136
time.sleep(sleep_randint)
137+
else:
138+
logging.info("\t\t\t\t\t\t文件类型不支持请提交反馈进行适配: %s, 课程: %s", file_type, name)
137139

138140

139141
def start(session, jump_content):

0 commit comments

Comments
 (0)