Handle unified licenses.
This commit is contained in:
parent
113423ca35
commit
86569d426b
@ -36,6 +36,8 @@ module.exports = async () => {
|
|||||||
if(meta[k])
|
if(meta[k])
|
||||||
meta[k] = cdblib.findopt($, `select#${k} option`, meta[k]);
|
meta[k] = cdblib.findopt($, `select#${k} option`, meta[k]);
|
||||||
});
|
});
|
||||||
|
meta.media_license = meta.media_license || meta.license;
|
||||||
|
meta.license = meta.license || meta.media_license;
|
||||||
|
|
||||||
Object.assign(fields, meta);
|
Object.assign(fields, meta);
|
||||||
let body = Object.keys(fields)
|
let body = Object.keys(fields)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user