mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-30 19:02:34 +00:00
WIP
This commit is contained in:
parent
c1a0db8025
commit
bb0fce1259
1 changed files with 30 additions and 2 deletions
|
@ -159,8 +159,36 @@
|
|||
},
|
||||
{"data": "episode"},
|
||||
{"data": "title"},
|
||||
{"data": "subtitles[, ]"},
|
||||
{"data": "missing_subtitles[, ]"},
|
||||
{"data": "subtitles",
|
||||
"render": function (data) {
|
||||
if (data !== 'None') {
|
||||
var languages = '';
|
||||
data.forEach(appendFunc);
|
||||
return languages;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
function appendFunc(value) {
|
||||
languages = languages + '<span class="badge badge-secondary" data-toggle="tooltip" data-placement="right" title="' + value[0].name + '">' + value[0].code2 + '</span> ';
|
||||
}
|
||||
}
|
||||
},
|
||||
{"data": "missing_subtitles",
|
||||
"render": function (data) {
|
||||
if (data !== 'None') {
|
||||
var languages = '';
|
||||
data.forEach(appendFunc);
|
||||
return languages;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
function appendFunc(value) {
|
||||
languages = languages + '<span class="badge badge-secondary" data-toggle="tooltip" data-placement="right" title="' + value.name + '">' + value.code2 + '</span> ';
|
||||
}
|
||||
}
|
||||
},
|
||||
{"data": "title"},
|
||||
{"data": "title"}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue