Private GIT

Skip to content
Snippets Groups Projects
Commit ebf724bd authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Merge branch 'unrar2-fix2'

parents f8da2f08 8d6431cf
No related branches found
No related tags found
No related merge requests found
...@@ -173,7 +173,10 @@ class RarFileImplementation(object): ...@@ -173,7 +173,10 @@ class RarFileImplementation(object):
data['size'] = int(fields[1]) data['size'] = int(fields[1])
attr = fields[0] attr = fields[0]
data['isdir'] = 'd' in attr.lower() data['isdir'] = 'd' in attr.lower()
try:
data['datetime'] = time.strptime(fields[2]+" "+fields[3], '%d-%m-%y %H:%M') data['datetime'] = time.strptime(fields[2]+" "+fields[3], '%d-%m-%y %H:%M')
except ValueError:
data['datetime'] = time.strptime(fields[2]+" "+fields[3], '%y-%m-%d %H:%M')
data['comment'] = None data['comment'] = None
data['volume'] = None data['volume'] = None
yield data yield data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment