Skip to content

Instantly share code, notes, and snippets.

@TheHairyGun
Created November 16, 2012 22:45
Show Gist options
  • Save TheHairyGun/4091614 to your computer and use it in GitHub Desktop.
Save TheHairyGun/4091614 to your computer and use it in GitHub Desktop.
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();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment