fix cell formatting and concat of rating_key and section_id

This commit is contained in:
herby2212 2023-10-29 19:21:36 +01:00
parent ad4d3c30d5
commit 2689646f54
2 changed files with 7 additions and 1 deletions

View file

@ -226,7 +226,7 @@ media_info_table_options = {
"targets": [10],
"data": "duration",
"createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== null && cellData !== '') {
if (cellData !== null && cellData !== '' && cellData !== 0) {
$(td).html(humanDuration(cellData));
} else {
if (rowData['section_type'] != 'photo' && get_file_sizes != null) {