mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 23:42:37 -07:00
Add {stream_time}, {remaining_time}, and {progress_time} to notification options
This commit is contained in:
parent
3248e6500e
commit
14a90d84ec
4 changed files with 57 additions and 9 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue