@@ -98,10 +98,13 @@ def cli_check_file(file_path: str) -> int:
9898 checksum = ui .checksum_guard .get_checksum (
9999 video .raw_data [: - (len (video .checksum ) + 2 )]
100100 )
101- if video .checksum == list ( checksum ) :
101+ if video .checksum == checksum :
102102 evf_evfs_files [ide ] = (e , 0 )
103103 else :
104- evf_evfs_files [ide ] = (e , 1 )
104+ evf_evfs_files [ide ] = (e + ' <==> ' + str (video .checksum == checksum ) +
105+ ' <==> ' + str (type (video .checksum )) + ' <==> ' + str (type (checksum )) + ' <==> ' + str (list (video .checksum )) +
106+ ' <==> ' + str (list (checksum ))+ ' <==> ' +
107+ str (list (video .raw_data [: - (len (video .checksum ) + 2 )][:40 ]))+ ' <==> ' + str (list (video .raw_data [: - (len (video .checksum ) + 2 )][- 40 :])), 1 )
105108 elif e .endswith (".evfs" ):
106109 # 检验evfs文件是否合法
107110 videos = ms .Evfs (e )
@@ -114,14 +117,14 @@ def cli_check_file(file_path: str) -> int:
114117 evf_evfs_files [ide ] = (e , 2 )
115118 checksum = ui .checksum_guard .get_checksum (
116119 videos [0 ].evf_video .raw_data )
117- if videos [0 ].checksum != list ( checksum ) :
120+ if videos [0 ].checksum != checksum :
118121 evf_evfs_files [ide ] = (e , 1 )
119122 continue
120123 for idcell , cell in enumerate (videos [1 :]):
121124 checksum = ui .checksum_guard .get_checksum (
122125 cell .evf_video .raw_data + videos [idcell - 1 ].checksum
123126 )
124- if cell .evf_video .checksum != list ( checksum ) :
127+ if cell .evf_video .checksum != checksum :
125128 evf_evfs_files [ide ] = (e , 1 )
126129 continue
127130 evf_evfs_files [ide ] = (e , 0 )
0 commit comments