Commit 2e1105f7 authored by shishir suman's avatar shishir suman
Browse files

code commented for you tube license

No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -39,8 +39,8 @@ class YouTubeMimeTypeMgrImpl(implicit ss: StorageService) extends BaseMimeTypeMa
override def publish(objectId: String, node: Node)(implicit ec: ExecutionContext, ontologyEngineContext: OntologyEngineContext): Future[Map[String, AnyRef]] = {
validate(node)
val license = node.getMetadata.getOrDefault("license", "").asInstanceOf[String]
val licenseData = if(StringUtils.isBlank(license)) validateAndGetLicense(node) else Map()
val data = getEnrichedPublishMetadata(node.getMetadata.getOrDefault("status", "").asInstanceOf[String])
val licenseData = Map("key"->"val")//if(StringUtils.isBlank(license)) validateAndGetLicense(node) else Map()
val data = Map.empty//getEnrichedPublishMetadata(node.getMetadata.getOrDefault("status", "").asInstanceOf[String])
Future(data ++ licenseData)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment