Handle unified licenses.

This commit is contained in:
Aaron Suen 2020-03-27 23:27:45 -04:00
parent 113423ca35
commit 86569d426b

View File

@ -36,6 +36,8 @@ module.exports = async () => {
if(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);
let body = Object.keys(fields)