diff --git a/configuration.default.ini b/configuration.default.ini
index cc58945..334c47f 100644
--- a/configuration.default.ini
+++ b/configuration.default.ini
@@ -279,7 +279,7 @@ help =
Commands
Control
- !web - get the URL of the web interface, if enabled.
- - !play (or !p) [{num}] - resume from pausing / start to play (the num-th song is num if given)
+ - !play (or !p) [{num}] [{start_from}] - resume from pausing / start to play (the num-th song is num if given)
- !pause - pause
- !stop - stop playing
- !skip - jump to the next song
diff --git a/util.py b/util.py
index 647ec4d..5085a3d 100644
--- a/util.py
+++ b/util.py
@@ -366,14 +366,14 @@ def get_media_duration(path):
def parse_time(human):
- match = re.search("(?:(\d\d):)?(?:(\d\d):)?(\d\d(?:\.\d*)?)", human, flags=re.IGNORECASE)
+ match = re.search("(?:(\d\d):)?(?:(\d\d):)?(\d+(?:\.\d*)?)", human, flags=re.IGNORECASE)
if match:
if match[1] is None and match[2] is None:
return float(match[3])
elif match[2] is None:
return float(match[3]) + 60 * int(match[1])
else:
- return float(match[3]) + 60 * int(match[2]) + 3600 * int(match[2])
+ return float(match[3]) + 60 * int(match[2]) + 3600 * int(match[1])
else:
raise ValueError("Invalid time string given.")