mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 13:11:15 -07:00
Quick fix so history doesn't break when media is playing.
This commit is contained in:
parent
04b290173c
commit
fa696adc79
1 changed files with 10 additions and 2 deletions
|
@ -193,14 +193,22 @@
|
||||||
"targets": [8],
|
"targets": [8],
|
||||||
"data":"stopped",
|
"data":"stopped",
|
||||||
"render": function ( data, type, full ) {
|
"render": function ( data, type, full ) {
|
||||||
return moment(data, "X").format("${time_format}");
|
if (data !== null) {
|
||||||
|
return moment(data, "X").format("${time_format}");
|
||||||
|
} else {
|
||||||
|
return data;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"targets": [9],
|
"targets": [9],
|
||||||
"data":"duration",
|
"data":"duration",
|
||||||
"render": function ( data, type, full ) {
|
"render": function ( data, type, full ) {
|
||||||
return Math.round(moment.duration(data, 'seconds').as('minutes')) + ' mins';
|
if (data !== null) {
|
||||||
|
return Math.round(moment.duration(data, 'seconds').as('minutes')) + ' mins';
|
||||||
|
} else {
|
||||||
|
return data;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue