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

View File

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

View File

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