Skip to content

Instantly share code, notes, and snippets.

it.content.each { content ->
//it.serverId = MediaHelper.transformLegacyServer(it.serverId, legacy, vms);
IngestMediaFile imf = new IngestMediaFile();
content.properties.each { key, value ->
try {
if(imf.hasProperty(key) && !(key in ['class', 'metaClass']))
imf[key] = value
} catch (Exception e) {
println e.toString();