From 5798b14b8b3bbc48982381ce91af123930311d4c Mon Sep 17 00:00:00 2001 From: JackDandy Date: Tue, 13 Oct 2015 23:29:35 +0100 Subject: [PATCH] Add ability to parse command line output from unix unrar version 4 and below. --- CHANGES.md | 1 + lib/unrar2/unix.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 2f2732ab..5f821245 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -52,6 +52,7 @@ [develop changelog] Enable Alpha Ratio again now that the secure login page over https is fixed +Add ability to parse command line output from unix unrar version 4 and below ### 0.10.0 (2015-08-06 11:05:00 UTC) diff --git a/lib/unrar2/unix.py b/lib/unrar2/unix.py index 9e826a48..5e5c36b4 100644 --- a/lib/unrar2/unix.py +++ b/lib/unrar2/unix.py @@ -178,7 +178,7 @@ class RarFileImplementation(object): @staticmethod def rarcmd_dt(param_date=time.strftime('%Y-%m-%d'), param_time=time.strftime('%H:%M')): - for str_fmt in '%Y-%m-%d %H:%M', '%Y-%m-%d %H:%M': + for str_fmt in '%Y-%m-%d %H:%M', '%d-%m-%y %H:%M': try: return time.strptime('%s %s' % (param_date, param_time), str_fmt) except ValueError: