Merge pull request #209 from cvandeplas/master

ta_import - support for TheatAnalyzer 6.1
pull/210/head
Christophe Vandeplas 2018-07-27 14:51:26 +02:00 committed by GitHub
commit a8170ded17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 8 deletions

View File

@ -46,8 +46,12 @@ def handler(q=False):
with zf.open(zip_file_name, mode='r', pwd=None) as fp:
file_data = fp.read()
for line in file_data.decode().split('\n'):
if line:
if not line:
continue
if line.count('|') == 3:
l_fname, l_size, l_md5, l_created = line.split('|')
if line.count('|') == 4:
l_fname, l_size, l_md5, l_sha256, l_created = line.split('|')
l_fname = cleanup_filepath(l_fname)
if l_fname:
if l_size == 0: