mirror of
https://github.com/morpheus65535/bazarr
synced 2025-02-20 13:07:03 +00:00
Added missing subtitles column in movies table.
This commit is contained in:
parent
e820bcb1bd
commit
d38cd38399
1 changed files with 17 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
||||||
<th>Subtitles Languages</th>
|
<th>Subtitles Languages</th>
|
||||||
<th>Hearing-Impaired</th>
|
<th>Hearing-Impaired</th>
|
||||||
<th>Forced</th>
|
<th>Forced</th>
|
||||||
|
<th>Missing Subtitles</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -209,6 +210,22 @@
|
||||||
data: "forced",
|
data: "forced",
|
||||||
className: "dt-center"
|
className: "dt-center"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
data: "missing_subtitles",
|
||||||
|
render: function (data) {
|
||||||
|
if (data && 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: null,
|
data: null,
|
||||||
render: function (data) {
|
render: function (data) {
|
||||||
|
|
Loading…
Reference in a new issue