Add {stream_time}, {remaining_time}, and {progress_time} to notification options

This commit is contained in:
JonnyWong16 2016-01-31 16:15:06 -08:00
parent 3248e6500e
commit 14a90d84ec
4 changed files with 57 additions and 9 deletions

View file

@ -135,6 +135,15 @@ def convert_seconds(s):
return minutes
def convert_seconds_to_minutes(s):
if str(s).isdigit():
minutes = round(float(s) / 60, 0)
return math.trunc(minutes)
return 0
def today():
today = datetime.date.today()