mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Add metadata parameters to notification string options.
Add SxE to notification title if type is episode.
This commit is contained in:
parent
abc90e1252
commit
824d4dfea2
6 changed files with 82 additions and 54 deletions
|
@ -99,7 +99,7 @@ def latinToAscii(unicrap):
|
|||
pass
|
||||
else:
|
||||
r += str(i)
|
||||
return r.encode('utf-8')
|
||||
return r
|
||||
|
||||
|
||||
def convert_milliseconds(ms):
|
||||
|
@ -115,7 +115,7 @@ def convert_milliseconds(ms):
|
|||
|
||||
def convert_milliseconds_to_minutes(ms):
|
||||
|
||||
if ms.isdigit():
|
||||
if str(ms).isdigit():
|
||||
seconds = float(ms) / 1000
|
||||
minutes = round(seconds / 60, 0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue