Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
knowledge-platform
Commits
2e1105f7
Commit
2e1105f7
authored
2 years ago
by
shishir suman
Browse files
Options
Download
Patches
Plain Diff
code commented for you tube license
parent
a24b3733
Gcloud_copy
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform-modules/mimetype-manager/src/main/scala/org/sunbird/mimetype/mgr/impl/YouTubeMimeTypeMgrImpl.scala
+2
-2
...rg/sunbird/mimetype/mgr/impl/YouTubeMimeTypeMgrImpl.scala
with
2 additions
and
2 deletions
+2
-2
platform-modules/mimetype-manager/src/main/scala/org/sunbird/mimetype/mgr/impl/YouTubeMimeTypeMgrImpl.scala
+
2
−
2
View file @
2e1105f7
...
...
@@ -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
)
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets