mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-30 16:33:37 +00:00
Add ability to parse command line output from unix unrar version 4 and below.
This commit is contained in:
parent
3455f73b5d
commit
5798b14b8b
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue