Revert "如果选的种类很少会出现大量冗余的时间信息,如果当前消息并未被选中那么不分析时间"

This reverts commit f169fdc2a5.
This commit is contained in:
STDquantum 2024-01-06 14:42:14 +08:00
parent f169fdc2a5
commit 5f245e5ff5
No known key found for this signature in database
GPG Key ID: 4F49272C35FBF52C

View File

@ -303,7 +303,11 @@ class HtmlExporter(ExporterBase):
else:
self.progressSignal.emit(1)
flag = True # 如果选的种类很少会出现大量冗余的时间信息,如果当前消息并未被选中那么不分析时间
if self.is_5_min(timestamp):
str_time = message[8]
f.write(
f'''{{ type:0, text: '{str_time}',is_send:0,avatar_path:'',timestamp:{timestamp}}},'''
)
if type_ == 1 and self.message_types.get(type_):
self.text(f, message)
elif type_ == 3 and self.message_types.get(type_):
@ -324,13 +328,6 @@ class HtmlExporter(ExporterBase):
self.music_share(f, message)
elif type_ == 49 and sub_type == 5 and self.message_types.get(4905):
self.share_card(f, message)
else:
flag = False
if flag and self.is_5_min(timestamp):
str_time = message[8]
f.write(
f'''{{ type:0, text: '{str_time}',is_send:0,avatar_path:'',timestamp:{timestamp}}},'''
)
f.write(html_end)
f.close()
self.count_finish_num(1)