add more metadata keys

This commit is contained in:
j 2019-02-21 20:07:53 +05:30
parent f1503f129b
commit 9ffad130d1
3 changed files with 22 additions and 1 deletions

View file

@ -715,6 +715,11 @@
"title": "Date of Censor Certificate",
"type": "date"
},
{
"id": "certificationcentre",
"title": "Certification centre",
"type": "string"
},
{
"id": "ratingcertificate",
"title": "Rating/Certificate",
@ -1059,6 +1064,14 @@
"find": true,
"sortType": "person"
},
{
"id": "laboratory",
"title": "Laboratory",
"type": ["string"],
"advanced": true,
"columnWidth": 180,
"find": true
},
{
"id": "courtesy",
"title": "Courtesy",

View file

@ -329,6 +329,7 @@ pandora.ui.infoView = function(data, isMixed) {
renderGroup([
'censorshipcertificatenumber',
'dateofcensorcertificate',
'censorshipcertificatecentre',
'ratingcertificate',
'length',
'numberofreels',
@ -422,6 +423,7 @@ pandora.ui.infoView = function(data, isMixed) {
'stuntdirector',
'continuity',
'publicity'
'laboratory'
]);
renderGroup([
'courtesy',
@ -629,6 +631,11 @@ pandora.ui.infoView = function(data, isMixed) {
: [];
} else if (key == 'imdbId') {
edit[key] = value.match(/\d{7}/)[0];
} else if (key == 'dateofcensorcertificate') {
if (/\d{2}-\d{2}-\d{4}/.test(value)) {
value = Ox.reverse(value.split('-')).join('-')
}
edit[key] = value;
} else {
edit[key] = value;
}

View file

@ -8,7 +8,8 @@ pandora.ui.metadataDialog = function(data) {
'productionCompany', 'filmingLocations',
'producer', 'writer', 'cinematographer', 'editor', 'composer', 'actor',
'lyricist', 'singer',
'genre', 'keyword', 'summary'
'genre', 'keyword', 'summary',
'laboratory'
],
mapKeys = {
'keyword': 'topic'